Skip to main content

WireLayout

Trait WireLayout 

Source
pub trait WireLayout: ZeroCopy {
    const WIRE_SIZE: usize = _;
}
Expand description

A ZeroCopy type with a compile-time-known wire size.

The associated constant defaults to size_of::<Self>(). The blanket implementation below applies that value to each ZeroCopy type.

Provided Associated Constants§

Source

const WIRE_SIZE: usize = _

Size of the on-wire representation, in bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§