[−][src]Trait nom::InputTakeAtPosition
methods to take as much input as possible until the provided function returns true for the current element
a large part of nom's basic parsers are built using this trait
Associated Types
type Item
Required Methods
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
P: Fn(Self::Item) -> bool,
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
Implementations on Foreign Types
impl<'a> InputTakeAtPosition for &'a [u8]
[src]
impl<'a> InputTakeAtPosition for &'a [u8]
type Item = u8
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
impl<'a> InputTakeAtPosition for &'a str
[src]
impl<'a> InputTakeAtPosition for &'a str
type Item = char
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
Implementors
impl<'a> InputTakeAtPosition for CompleteByteSlice<'a>
[src]
impl<'a> InputTakeAtPosition for CompleteByteSlice<'a>
type Item = u8
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
impl<'a> InputTakeAtPosition for CompleteStr<'a>
[src]
impl<'a> InputTakeAtPosition for CompleteStr<'a>
type Item = char
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position<P>(&self, predicate: P) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
[src]
fn split_at_position1<P>(
&self,
predicate: P,
e: ErrorKind<u32>
) -> IResult<Self, Self, u32> where
P: Fn(Self::Item) -> bool,
impl<T: InputLength + InputIter + InputTake + AtEof + Clone + UnspecializedInput> InputTakeAtPosition for T
[src]
impl<T: InputLength + InputIter + InputTake + AtEof + Clone + UnspecializedInput> InputTakeAtPosition for T