Trait nom::InputTake
[−]
[src]
pub trait InputTake: Sized {
fn take(&self, count: usize) -> Option<Self>;
fn take_split(&self, count: usize) -> Option<(Self, Self)>;
}abstracts slicing operations
Required Methods
fn take(&self, count: usize) -> Option<Self>
returns a slice of count bytes
fn take_split(&self, count: usize) -> Option<(Self, Self)>
split the stream at the count byte offset
Implementations on Foreign Types
impl<'a> InputTake for &'a [u8][src]
impl<'a> InputTake for &'a str[src]
Implementors
impl<'a> InputTake for CompleteStr<'a>impl<'a> InputTake for CompleteByteSlice<'a>