spinel_pack

Trait SpinelFixedLen

Source
pub trait SpinelFixedLen {
    const FIXED_LEN: usize;
}
Expand description

Marker trait for types which always serialize to the same length.

Required Associated Constants§

Source

const FIXED_LEN: usize

The length of the type, in bytes.

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 SpinelFixedLen for bool

Source§

const FIXED_LEN: usize = 1usize

Source§

impl SpinelFixedLen for i8

Source§

const FIXED_LEN: usize = 1usize

Source§

impl SpinelFixedLen for i16

Source§

const FIXED_LEN: usize = 2usize

Source§

impl SpinelFixedLen for i32

Source§

const FIXED_LEN: usize = 4usize

Source§

impl SpinelFixedLen for i64

Source§

const FIXED_LEN: usize = 8usize

Source§

impl SpinelFixedLen for u8

Source§

const FIXED_LEN: usize = 1usize

Source§

impl SpinelFixedLen for u16

Source§

const FIXED_LEN: usize = 2usize

Source§

impl SpinelFixedLen for u32

Source§

const FIXED_LEN: usize = 4usize

Source§

impl SpinelFixedLen for u64

Source§

const FIXED_LEN: usize = 8usize

Source§

impl SpinelFixedLen for ()

Source§

const FIXED_LEN: usize = 0usize

Source§

impl SpinelFixedLen for Ipv6Addr

Source§

const FIXED_LEN: usize = 16usize

Implementors§