Expand description
Traits for generically dealing with a decoding framework.
The central traits are Decode and Decoder.
A type implementing Decode can use an Decoder to decode an instance of itself. This also comes with a derive allowing you to derive high performance decoding associated with native Rust types.
use musli::Decode;
#[derive(Decode)]
pub struct Person<'a> {
name: &'a str,
age: u32,
}
Enums§
- A length hint.
- Indicates if skipping was performed.
Traits§
- Trait that allows a type to be repeatedly coerced into a decoder.
- Trait governing how types are decoded.
- Trait governing how types are decoded as bytes.
- Decode to an owned value.
- Trait governing how a type is decoded as a packed value.
- Trait governing how types are decoded specifically for tracing.
- A trait implemented for types which can only be decoded by reference.
- A trait implemented for types which can be visited by reference.
- Trait governing the implementation of a decoder.
- Trait governing how to decode a sequence of map pairs.
- Trait governing how to decode a map entry.
- Trait governing how to decode a sequence of pairs.
- A visitor capable of processing arbitrary number values.
- Trait governing how to decode a sequence.
- A visitor for data where it might be possible to borrow it without copying from the underlying Decoder.
- Trait governing how to decode a variant.
- Visitor capable of decoding any type into a value
Visitor::Ok
.
Derive Macros§
- Please refer to the main musli documentation. Please refer to the main musli
derives
documentation.