Expand description
Traits for generically dealing with an encoding framework.
The central traits are Encode and Encoder.
A type implementing Encode can use an Encoder to encode itself. This also comes with a derive allowing you to derive high performance encoding associated with native Rust types.
use musli::Encode;
#[derive(Encode)]
pub struct Person<'a> {
name: &'a str,
age: u32,
}
Traits§
- Trait governing how types are encoded.
- Trait governing how a type is encoded as bytes.
- Trait governing how a type is encoded as a packed value.
- Trait governing how types are encoded specifically for tracing.
- Trait governing how the encoder works.
- Trait governing how to encode a map entry.
- Trait governing how to encode a map entry.
- Encoder for a map.
- Trait governing how to encode a sequence.
- Trait governing how to encode a variant.
Derive Macros§
- Please refer to the main musli
derives
documentation.