Skip to main content

ToLeStream

Trait ToLeStream 

Source
pub trait ToLeStream
where Self::Iter: Iterator<Item = u8>,
{ type Iter; // Required method fn to_le_stream(self) -> Self::Iter; }
Expand description

Convert an object to a stream of bytes with little endianness.

Required Associated Types§

Source

type Iter

The byte iterator type.

Required Methods§

Source

fn to_le_stream(self) -> Self::Iter

Return an iterator of bytes with little endianness.

Implementations on Foreign Types§

Source§

impl ToLeStream for Infallible

Source§

type Iter = Empty<u8>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for bool

Source§

type Iter = <u8 as ToLeStream>::Iter

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for f32

Source§

type Iter = IntoIter<u8, 4>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for f64

Source§

type Iter = IntoIter<u8, 8>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for i8

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for i16

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for i32

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for i64

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for i128

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for isize

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for u8

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for u16

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for u32

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for u64

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for u128

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for ()

Source§

type Iter = Empty<u8>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl ToLeStream for usize

Source§

type Iter = IntoIter<u8, { Self::BITS as usize / 8 }>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T> ToLeStream for Option<T>
where T: ToLeStream,

Source§

type Iter = OptionIterator<T>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T> ToLeStream for Box<[T]>
where T: ToLeStream,

Source§

type Iter = FlatMap<<Box<[T]> as IntoIterator>::IntoIter, <T as ToLeStream>::Iter, fn(T) -> <T as ToLeStream>::Iter>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T> ToLeStream for Vec<T>
where T: ToLeStream,

Source§

type Iter = FlatMap<<Vec<T> as IntoIterator>::IntoIter, <T as ToLeStream>::Iter, fn(T) -> <T as ToLeStream>::Iter>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T> ToLeStream for PhantomData<T>

Source§

type Iter = Empty<u8>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T> ToLeStream for Range<T>
where T: ToLeStream,

Source§

type Iter = Chain<<T as ToLeStream>::Iter, <T as ToLeStream>::Iter>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T> ToLeStream for RangeInclusive<T>
where T: ToLeStream,

Source§

type Iter = Chain<<T as ToLeStream>::Iter, <T as ToLeStream>::Iter>

Source§

fn to_le_stream(self) -> Self::Iter

Source§

impl<T, const SIZE: usize> ToLeStream for [T; SIZE]
where T: ToLeStream,

Source§

type Iter = FlatMap<IntoIter<T, SIZE>, <T as ToLeStream>::Iter, fn(T) -> <T as ToLeStream>::Iter>

Source§

fn to_le_stream(self) -> Self::Iter

Implementors§

Source§

impl<P, T> ToLeStream for Prefixed<P, Box<[T]>>
where P: TryFrom<usize, Error: Debug> + ToLeStream, T: ToLeStream,

Source§

type Iter = Chain<<P as ToLeStream>::Iter, <Vec<T> as ToLeStream>::Iter>