Provides various anonymous type constructs
Macros
struct!: creates an instance of an anonymous struct.
use r#struct;
let items = vec!;
let x = r#struct! ;
assert_eq!;
assert_eq!;
join!andjoin_cyclic!: join multiple futures. Requirefuturefeature.
use join;
assert_eq!;
Example Macro Expansions
https://github.com/discreaminant2809/anony/blob/master/examples/expansions.rs
Features
serde: derivesSerializefor anonymous structs. serde crate and itsderivefeature must exist in your crate.future: enablesFutureanonymous types, such asjoin!.
Todos
- "Functional traits": quickly create an instance of a struct implementing a trait having exactly one required method.
- "Typing": a way to create a new instance of the same anonymous struct as the source.