[][src]Struct grin_core::ser::BinReader

pub struct BinReader<'a> { /* fields omitted */ }

Utility to read from a binary source

Trait Implementations

impl<'a> Reader for BinReader<'a>[src]

Utility wrapper for an underlying byte Reader. Defines higher level methods to read numbers, byte vectors, hashes, etc.

fn read_bytes_len_prefix(&mut self) -> Result<Vec<u8>, Error>[src]

Read a variable size vector from the underlying Read. Expects a usize

fn read_fixed_bytes(&mut self, len: usize) -> Result<Vec<u8>, Error>[src]

Read a fixed number of bytes.

Auto Trait Implementations

impl<'a> !Send for BinReader<'a>

impl<'a> Unpin for BinReader<'a>

impl<'a> !Sync for BinReader<'a>

impl<'a> !UnwindSafe for BinReader<'a>

impl<'a> !RefUnwindSafe for BinReader<'a>

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T