[][src]Trait atat::derive::AtatLen

pub trait AtatLen {
    type Len: ArrayLength<u8>;
}

Trait used by atat_derive to estimate lengths of the serialized commands, at compile time.

Associated Types

type Len: ArrayLength<u8>[src]

Loading content...

Implementations on Foreign Types

impl AtatLen for char[src]

type Len = U1

impl AtatLen for bool[src]

type Len = U5

impl AtatLen for isize[src]

type Len = U19

impl AtatLen for usize[src]

type Len = U20

impl AtatLen for u8[src]

type Len = U3

impl AtatLen for u16[src]

type Len = U5

impl AtatLen for u32[src]

type Len = U10

impl AtatLen for u64[src]

type Len = U20

impl AtatLen for u128[src]

type Len = U39

impl AtatLen for i8[src]

type Len = U4

impl AtatLen for i16[src]

type Len = U6

impl AtatLen for i32[src]

type Len = U11

impl AtatLen for i64[src]

type Len = U20

impl AtatLen for i128[src]

type Len = U40

impl AtatLen for f32[src]

type Len = U42

impl AtatLen for f64[src]

type Len = U312

impl<T: ArrayLength<u8>> AtatLen for String<T>[src]

type Len = T

impl<T: AtatLen> AtatLen for Option<T>[src]

type Len = T::Len

impl<T: AtatLen, '_> AtatLen for &'_ T[src]

type Len = T::Len

impl<T, L> AtatLen for Vec<T, L> where
    T: AtatLen,
    L: ArrayLength<T> + Unsigned + Mul<<T as AtatLen>::Len>,
    <L as Mul<<T as AtatLen>::Len>>::Output: ArrayLength<u8>, 
[src]

type Len = <L as Mul<<T as AtatLen>::Len>>::Output

Loading content...

Implementors

Loading content...