Skip to main content

ByteReader

Trait ByteReader 

Source
pub trait ByteReader {
    // Required methods
    fn read(&mut self, dest: &mut [u8]) -> usize;
    fn remaining(&self) -> Option<usize>;
}
Expand description

Trait for reading bytes from a hash output.

Required Methods§

Source

fn read(&mut self, dest: &mut [u8]) -> usize

Read bytes into the destination buffer. Returns bytes read.

Source

fn remaining(&self) -> Option<usize>

Returns remaining bytes, or None if infinite.

Implementors§