[][src]Trait nom::InputTake

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

abstracts slicing operations

Required methods

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

returns a slice of count bytes

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

split the stream at the count byte offset

Loading content...

Implementations on Foreign Types

impl InputTake for [u8][src]

impl InputTake for str[src]

Loading content...

Implementors

Loading content...