[][src]Struct layered_io::SliceReader

pub struct SliceReader<'slice> { /* fields omitted */ }

Adapts an &[u8] to implement ReadLayered.

Implementations

impl<'slice> SliceReader<'slice>[src]

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

Construct a new SliceReader which wraps slice.

Trait Implementations

impl<'slice> Bufferable for SliceReader<'slice>[src]

impl<'slice> Read for SliceReader<'slice>[src]

impl<'slice> ReadLayered for SliceReader<'slice>[src]

Auto Trait Implementations

impl<'slice> RefUnwindSafe for SliceReader<'slice>[src]

impl<'slice> Send for SliceReader<'slice>[src]

impl<'slice> Sync for SliceReader<'slice>[src]

impl<'slice> Unpin for SliceReader<'slice>[src]

impl<'slice> UnwindSafe for SliceReader<'slice>[src]

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.