Trait le_stream::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 bool

source§

type Iter = <u8 as ToLeStream>::Iter

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for i8

source§

type Iter = IntoIter<u8, 1>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for i16

source§

type Iter = IntoIter<u8, 2>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for i32

source§

type Iter = IntoIter<u8, 4>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for i64

source§

type Iter = IntoIter<u8, 8>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for u8

source§

type Iter = IntoIter<u8, 1>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for u16

source§

type Iter = IntoIter<u8, 2>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for u32

source§

type Iter = IntoIter<u8, 4>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for u64

source§

type Iter = IntoIter<u8, 8>

source§

fn to_le_stream(self) -> Self::Iter

source§

impl ToLeStream for u128

source§

type Iter = IntoIter<u8, 16>

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, { size_of::<Self>() }>

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 Vec<T>
where T: ToLeStream,

source§

type Iter = Chain<<usize as ToLeStream>::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, 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§