Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-Standard-Library-Cookbook
/ types & classes
Types & classes
61 in github.com/PacktPublishing/Rust-Standard-Library-Cookbook
⨍
Functions
272
◇
Types & classes
61
↓ 1 callers
Class
DoubleVec
Chapter05/src/bin/conversion.rs:6
↓ 1 callers
Class
GeneratorIterator
Chapter10/src/bin/generator.rs:50
Enum
AgeReaderError
This is going to be our custom Error type
Chapter06/src/bin/custom_error.rs:7
Enum
AllowedSpecies
Chapter04/src/bin/json.rs:27
Interface
Animal
Boxes enable you to use traditional OOP polymorph
Chapter05/src/bin/boxing.rs:37
Interface
Animal
Chapter10/src/bin/return_abstract.rs:3
Class
Australia
Chapter05/src/bin/custom_derive.rs:22
Class
Ball
Chapter05/src/bin/shared.rs:7
Class
Britain
Chapter05/src/bin/custom_derive.rs:17
Class
Burger
Chapter01/src/bin/builder.rs:35
Class
BurgerBuilder
Chapter01/src/bin/builder.rs:64
Class
Cat
Chapter05/src/bin/boxing.rs:50
Class
Client
Client holds whatever state your client might have
Chapter07/src/bin/connection_handler.rs:8
Class
ConnectionHandler
ConnectionHandler manages a list of connections in a parallelly safe way
Chapter07/src/bin/connection_handler.rs:14
Class
Container
Chapter08/src/bin/pool.rs:23
Enum
CrustType
You can implement default easily for your own types
Chapter01/src/bin/default.rs:51
Class
CustomSmartPointer
Chapter06/src/bin/drop.rs:3
Class
Customer
Chapter05/src/bin/interior_mutability.rs:13
Class
Dog
Chapter05/src/bin/boxing.rs:42
Class
Dog
Chapter10/src/bin/return_abstract.rs:7
Class
Email
Chapter05/src/bin/interior_mutability.rs:6
Interface
EmailSender
Chapter05/src/bin/interior_mutability.rs:1
Class
FakeWaker
Chapter08/src/bin/bilocks.rs:11
Class
Fibonacci
Chapter02/src/bin/own_iterator.rs:19
Class
FileLogger
This logger will write logs into a file on disk
Chapter06/src/bin/custom_logger.rs:12
Enum
FileLoggerError
Chapter06/src/bin/custom_logger.rs:75
Class
FuturePanic
Chapter08/src/bin/errors.rs:37
Class
HelloWorld
Chapter09/src/bin/hello_world_server.rs:45
Interface
HelloWorld
trait definitions have to be in "consumer" crate
Chapter05/src/bin/custom_derive.rs:5
Class
Kid
The ball will survive until all kids are done playing with it
Chapter05/src/bin/shared.rs:4
Class
Language
Chapter04/src/bin/toml.rs:22
Class
ManualSink
Chapter08/src/bin/sinks.rs:82
Class
MockEmailSender
Chapter05/src/bin/interior_mutability.rs:49
Class
MyFuture
Chapter08/src/bin/errors.rs:9
Class
NaiveMutex
NaiveMutex is an easy, albeit very suboptimal, implementation of a Mutex ("Mutual Exclusion"), similar to std::sync::Mutex A mutex is a lock that only
Chapter07/src/bin/atomic.rs:102
Class
NaiveMutexGuard
This is a RAII guard, identical to the one from the last chapter
Chapter07/src/bin/atomic.rs:110
Class
NameLength
Chapter01/src/bin/constructor.rs:11
Class
NewPost
Chapter09/src/bin/making_requests.rs:20
Class
Node
Chapter05/src/bin/boxing.rs:9
Class
Person
Chapter04/src/bin/toml.rs:16
Class
Pet
Chapter04/src/bin/json.rs:18
Class
PetOwner
Chapter04/src/bin/json.rs:11
Class
PizzaConfig
Chapter01/src/bin/default.rs:43
Class
Planet
Chapter04/src/bin/serde_csv.rs:10
Class
Player
Chapter08/src/bin/returning.rs:15
Enum
PlayerStatus
Chapter08/src/bin/returning.rs:8
Class
Post
Chapter09/src/bin/making_requests.rs:11
Class
PostCrud
Chapter09/src/bin/making_requests.rs:38
Class
Preferences
Chapter04/src/bin/toml.rs:9
Class
Privacy
Chapter04/src/bin/toml.rs:28
Class
QuickStream
Chapter08/src/bin/streams.rs:12
Class
Reader
Chapter08/src/bin/bilocks.rs:16
Class
Rectangle
Chapter07/src/bin/join.rs:4
Class
SomeOsFunctionality
This is a safe wrapper around the low level struct
Chapter06/src/bin/raii.rs:9
Class
SomeOsFunctionalityGuard
Access to a locked SomeOsFunctionality is wrapped in a guard that automatically unlocks it when dropped
Chapter06/src/bin/raii.rs:20
Class
SomeOsSpecificFunctionalityHandle
This represents a low level, close to the metal OS feature that needs to be locked and unlocked in some way in order to be accessed and is usually uns
Chapter06/src/bin/raii.rs:6
Class
SquaredVec
Chapter02/src/bin/own_iterator.rs:37
Enum
Status
Chapter08/src/bin/pool.rs:16
Class
Switzerland
Chapter05/src/bin/custom_derive.rs:14
Class
UpdatedPost
The following struct could be rewritten with a builder
Chapter09/src/bin/making_requests.rs:29
Class
Writer
Chapter08/src/bin/bilocks.rs:20