Trait lense::ContinuousLenseReader [] [src]

pub trait ContinuousLenseReader<'a>: Lense<'a> + Sized {
    fn from_buf(ptr: &mut &'a mut [u8]) -> Result<Option<Self>, ()> { ... }
}

Continuous lense reader allowing the consumer to to read as many of their type that is present in the stream. TODO: Replace with an Interator

Provided Methods

fn from_buf(ptr: &mut &'a mut [u8]) -> Result<Option<Self>, ()>

Start working or continue iterating over a byte stream collecting lenses one-by-one.

Implementors