Skip to main content

ConstPackedSizeBytes

Trait ConstPackedSizeBytes 

Source
pub trait ConstPackedSizeBytes {
    const PACKED_SIZE_BYTES: usize;
}
Expand description

Types that have a constant size when written to or read from bytes.

Required Associated Constants§

Source

const PACKED_SIZE_BYTES: usize

The constant size in bytes when this type is packed for network transmission.

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§