Trait mesh_protobuf::table::StructMetadata
source · 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§
Object Safety§
This trait is not object safe.