[][src]Struct declio::ctx::Len

pub struct Len(pub usize);

The number of elements in variable-sized containers.

Trait Implementations

impl Clone for Len[src]

impl Copy for Len[src]

impl Debug for Len[src]

impl<T> Decode<Len> for Vec<T> where
    T: Decode
[src]

fn decode<R>(len: Len, reader: &mut R) -> Result<Self, Error> where
    R: Read
[src]

Decodes multiple values of type T, collecting them in a Vec.

The length of the vector / number of elements decoded is equal to the value of the Len context.

impl From<Len> for usize[src]

impl From<usize> for Len[src]

impl PartialEq<Len> for Len[src]

impl StructuralPartialEq for Len[src]

impl<'_> TryFrom<&'_ i128> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ i16> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ i32> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ i64> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ i8> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ u128> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ u16> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ u32> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ u64> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ u8> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for u8[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for u16[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for u32[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for u64[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for u128[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for i8[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for i16[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for i32[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for i64[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<Len> for i128[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<i128> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<i16> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<i32> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<i64> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<i8> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<u128> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<u16> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<u32> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<u64> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<u8> for Len[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Len

impl Send for Len

impl Sync for Len

impl Unpin for Len

impl UnwindSafe for Len

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.