pub unsafe trait StructEncodeMetadata<R>: StructMetadata {
const ENCODERS: &'static [ErasedEncoderEntry];
}
Expand description
Metadata for encoding a struct.
§Safety
The implementor must ensure that the ENCODERS
are correct and complete for
Self
and R
.
Required Associated Constants§
Sourceconst ENCODERS: &'static [ErasedEncoderEntry]
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder 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.