Provides various anonymous type constructs
Macros
r#struct: creates an instance of an anonymous struct
use r#struct;
let items = vec!;
let x = r#struct! ;
// Since all of the fields implement `Debug`, the type of the instance implements it also!
assert_eq!;
Features
serde: derivesserde's traits for anonymous structs.serdecrate and itsderivefeature must exist in your crate
Todos
-
"Functional traits": quickly create an instance of a struct implementing a trait having exactly one required method
-
Shared/mutable references to the struct's fields
-
Pinning projection to the struct's fields