Trait canonical::Source[][src]

pub trait Source<S> {
    fn read_bytes(&mut self, n: usize) -> &[u8];
fn store(&self) -> &S; }

Trait to implement reading bytes from an underlying storage

Required methods

fn read_bytes(&mut self, n: usize) -> &[u8][src]

Request n bytes from the sink to be read

fn store(&self) -> &S[src]

Returns a reference to the Store associated with the source

Loading content...

Implementors

impl<'a, S> Source<S> for ByteSource<'a, S> where
    S: Store
[src]

Loading content...