Trait nonymous::view::View[][src]

pub trait View<'s>: 's {
    type Error;
    fn view(source: &'s [u8], range: Range<usize>) -> Result<Self, Self::Error>
    where
        Self: Sized
;
fn len(&self) -> usize; }
Expand description

A trait for objects that view a given buffer and range into that buffer.

Associated Types

Required methods

Trait Implementations

Performs the conversion.

Implementors