Trait StructLength

Source
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§

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.

Implementors§