[][src]Struct sliceread::BinaryStream

pub struct BinaryStream<'a, E: Endian = LittleEndian> { /* fields omitted */ }

A BinaryStream wraps a slice, and allows you to 'read' from it linearly.

Implementations

impl<'a, E: Endian> BinaryStream<'a, E>[src]

pub fn new(bytes: &'a [u8]) -> Self[src]

pub fn at_end(&self) -> bool[src]

Trait Implementations

impl<'a, E: Endian> EndianSliceRead<E> for BinaryStream<'a, E>[src]

impl<'a, E: Endian> SliceRead for BinaryStream<'a, E>[src]

Auto Trait Implementations

impl<'a, E> RefUnwindSafe for BinaryStream<'a, E> where
    E: RefUnwindSafe

impl<'a, E> Send for BinaryStream<'a, E> where
    E: Send

impl<'a, E> Sync for BinaryStream<'a, E> where
    E: Sync

impl<'a, E> Unpin for BinaryStream<'a, E> where
    E: Unpin

impl<'a, E> UnwindSafe for BinaryStream<'a, E> where
    E: UnwindSafe

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, 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.