Skip to main content

FixedLayout

Trait FixedLayout 

Source
pub trait FixedLayout {
    const SIZE: usize;
}
Expand description

Trait for types with a compile-time known wire size.

Required Associated Constants§

Source

const SIZE: usize

Total byte size on the wire (including any header if applicable).

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§