Trait spinel_pack::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.

Object Safety§

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§