pub unsafe trait StructMetadata {
const NUMBERS: &'static [u32];
const OFFSETS: &'static [usize];
}
Expand description
Trait for types that can be encoded using TableEncoder
.
§Safety
The implementor must ensure that this metadata describes all fields within
Self
, and that OFFSETS
are the correct byte offsets to the fields.
Required Associated Constants§
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.