1
2
3
4
5
6
7
8
9
10
11
12
13
mod impls;

/// Convert an object to a stream of bytes with little endianness.
pub trait ToLeStream
where
    Self::Iter: Iterator<Item = u8>,
{
    /// The byte iterator type.
    type Iter;

    /// Return an iterator of bytes with little endianness.
    fn to_le_stream(self) -> Self::Iter;
}