[][src]Trait nom::InputTake

pub trait InputTake: Sized {
    fn take(&self, count: usize) -> Self;
fn take_split(&self, count: usize) -> (Self, Self); }

Abstracts slicing operations

Required methods

fn take(&self, count: usize) -> Self

Returns a slice of count bytes. panics if count > length

fn take_split(&self, count: usize) -> (Self, Self)

Split the stream at the count byte offset. panics if count > length

Loading content...

Implementations on Foreign Types

impl<'a> InputTake for &'a [u8][src]

impl<'a> InputTake for &'a str[src]

impl<'a, O, T> InputTake for &'a BitSlice<O, T> where
    O: BitOrder,
    T: 'a + BitStore
[src]

Loading content...

Implementors

Loading content...