pub unsafe trait StructDecodeMetadata<'de, R>: StructMetadata {
const DECODERS: &'static [ErasedDecoderEntry];
}
Expand description
The struct metadata for decoding a struct.
§Safety
The implementor must ensure that the DECODERS
are correct and complete for
Self
, such that if every field is decoded, then the struct value is valid.
Required Associated Constants§
Sourceconst DECODERS: &'static [ErasedDecoderEntry]
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.