pub trait StructLength: StructMeta {
// Required method
fn length_of_buf(buf: &[u8]) -> Option<usize>;
}
Expand description
Implemented for all generated structs that have a [meta::Length
] field at a fixed offset.
Required Methods§
fn length_of_buf(buf: &[u8]) -> Option<usize>
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.