Cargando…

Rust Standard Library Cookbook : Over 75 recipes to leverage the power of Rust.

Mozilla's Rust is gaining much attention with amazing features and a powerful library. This book will take you through varied recipes to teach you how to leverage the Standard library to implement effective solutions.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Durante, Daniel
Otros Autores: Ferner, Jan Nils
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Learning the Basics; Introduction; Concatenating strings; Getting ready; How to do it ... ; How it works ... ; Using the format! macro; How to do it ... ; How it works ... ; There's more ... ; Providing a default implementation; How to do it ... ; How it works ... ; Using the constructor pattern; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Using the builder pattern; How to do it ... ; How it works ... ; There's more ... ; Parallelism through simple threads; How to do it ...
  • How it works ... There's more ... ; See also; Generating random numbers; How to do it ... ; How it works ... ; There's more ... ; Querying with regexes; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Accessing the command line; How to do it ... ; How it works ... ; There's more ... ; Interacting with environment variables; How to do it ... ; How it works ... ; There's more ... ; Reading from stdin; How to do it ... ; How it works ... ; There's more ... ; See also; Accepting a variable number of arguments; Getting started; How to do it ... ; How it works ... ; There's more ... ; See also.
  • Chapter 2: Working with CollectionsIntroduction; Using a vector; How to do it ... ; How it works ... ; There's more ... ; Using a string; How to do it ... ; How it works ... ; There's more ... ; Accessing collections as iterators; How to do it ... ; How it works ... ; There's more ... ; See also; Using a VecDeque; How to do it ... ; How it works ... ; There's more ... ; Using a HashMap; How to do it ... ; How it works ... ; There's more ... ; Using a HashSet; How to do it ... ; How it works ... ; There's more ... ; Creating an own iterator; How to do it ... ; How it works ... ; There's more ... ; Using a slab; How to do it ...
  • How it works ... There's more ... ; Chapter 3: Handling Files and the Filesystem; Introduction; Working with text files; How to do it ... ; How it works ... ; There's more ... ; See also; Handling bytes; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Working with binary files; How to do it ... ; How it works ... ; There's more ... ; See also; Compressing and decompressing data; How to do it ... ; How it works ... ; There's more ... ; Traversing the filesystem; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Finding files with glob patterns; How to do it ...
  • How it works ... See also; Chapter 4: Serialization; Introduction; Working with CSV; Getting started; How to do it ... ; How it works ... ; There's more ... ; See also; Serialization basics with Serde; How to do it ... ; How it works ... ; There's more ... ; See also; Working with TOML; Getting started; How to do it ... ; How it works ... ; There's more ... ; See also; Working with JSON; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Building JSON dynamically; How to do it ... ; How it works ... ; See also; Chapter 5: Advanced Data Structures; Introduction; Creating lazy static objects.