[−][src]Struct declio::ctx::Len
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]
T: Decode,
fn decode<R>(len: Len, reader: &mut R) -> Result<Self, Error> where
R: Read,
[src]
R: Read,
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.
fn try_from(x: &i128) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ i16> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &i16) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ i32> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &i32) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ i64> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &i64) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ i8> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &i8) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ u128> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &u128) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ u16> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &u16) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ u32> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &u32) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ u64> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &u64) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ u8> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: &u8) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for u8
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for u16
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for u32
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for u64
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for u128
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for i8
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for i16
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for i32
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for i64
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<Len> for i128
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(Len: Len) -> Result<Self, Self::Error>
[src]
impl TryFrom<i128> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: i128) -> Result<Self, Self::Error>
[src]
impl TryFrom<i16> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: i16) -> Result<Self, Self::Error>
[src]
impl TryFrom<i32> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: i32) -> Result<Self, Self::Error>
[src]
impl TryFrom<i64> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: i64) -> Result<Self, Self::Error>
[src]
impl TryFrom<i8> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: i8) -> Result<Self, Self::Error>
[src]
impl TryFrom<u128> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: u128) -> Result<Self, Self::Error>
[src]
impl TryFrom<u16> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: u16) -> Result<Self, Self::Error>
[src]
impl TryFrom<u32> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: u32) -> Result<Self, Self::Error>
[src]
impl TryFrom<u64> for Len
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(x: u64) -> Result<Self, Self::Error>
[src]
impl TryFrom<u8> for Len
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,