Trait nom::InputTake [−][src]
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
Implementations on Foreign Types
impl<'a> InputTake for &'a [u8]
[src]
impl<'a> InputTake for &'a [u8]
impl<'a> InputTake for &'a str
[src]
impl<'a> InputTake for &'a str
Implementors
impl<'a> InputTake for CompleteStr<'a>
impl<'a> InputTake for CompleteByteSlice<'a>
impl<T: InputTake> InputTake for Input<T>