EtherCrabWireWriteSized

Trait EtherCrabWireWriteSized 

Source
pub trait EtherCrabWireWriteSized: EtherCrabWireSized {
    // Required method
    fn pack(&self) -> Self::Buffer;
}
Expand description

Implemented for writeable types with a known size at compile time.

This trait is implemented automatically if EtherCrabWireWrite or EtherCrabWireReadWrite is derived.

Required Methods§

Source

fn pack(&self) -> Self::Buffer

Pack this item to a fixed sized array.

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.

Implementations on Foreign Types§

Source§

impl EtherCrabWireWriteSized for bool

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for f32

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for f64

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for i8

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for i16

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for i32

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for i64

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for u8

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for u16

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for u32

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for u64

Source§

fn pack(&self) -> Self::Buffer

Source§

impl EtherCrabWireWriteSized for ()

Source§

fn pack(&self) -> Self::Buffer

Implementors§