pub struct Wrap<I>where
I: Clone + ToString + AsBytes + Slice<Range<usize>> + Slice<RangeTo<usize>> + Slice<RangeFrom<usize>> + InputLength + Offset + InputTake + InputIter<Item = char> + Debug + InputTakeAtPosition<Item = char>,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a> Compare<&'static str> for Wrap<LocatedSpan<&'a str, Arc<String>>>
impl<'a> Compare<&'static str> for Wrap<LocatedSpan<&'a str, Arc<String>>>
Source§fn compare(&self, t: &str) -> CompareResult
fn compare(&self, t: &str) -> CompareResult
Compares self to another value for equality
Source§fn compare_no_case(&self, t: &str) -> CompareResult
fn compare_no_case(&self, t: &str) -> CompareResult
Compares self to another value for equality
independently of the case. Read more
Source§impl<'a> FindSubstring<&str> for Wrap<LocatedSpan<&'a str, Arc<String>>>
impl<'a> FindSubstring<&str> for Wrap<LocatedSpan<&'a str, Arc<String>>>
Source§impl<I> InputIter for Wrap<I>
impl<I> InputIter for Wrap<I>
Source§type Item = <I as InputIter>::Item
type Item = <I as InputIter>::Item
The current input type is a sequence of that
Item type. Read moreSource§type Iter = <I as InputIter>::Iter
type Iter = <I as InputIter>::Iter
An iterator over the input type, producing the item and its position
for use with Slice. If we’re iterating over
&str, the position
corresponds to the byte index of the characterSource§type IterElem = <I as InputIter>::IterElem
type IterElem = <I as InputIter>::IterElem
An iterator over the input type, producing the item
Source§fn iter_indices(&self) -> Self::Iter
fn iter_indices(&self) -> Self::Iter
Returns an iterator over the elements and their byte offsets
Source§fn iter_elements(&self) -> Self::IterElem
fn iter_elements(&self) -> Self::IterElem
Returns an iterator over the elements
Source§impl<I> InputLength for Wrap<I>
impl<I> InputLength for Wrap<I>
Source§impl<I> InputTakeAtPosition for Wrap<I>
impl<I> InputTakeAtPosition for Wrap<I>
Source§type Item = <I as InputIter>::Item
type Item = <I as InputIter>::Item
The current input type is a sequence of that
Item type. Read moreSource§fn split_at_position<P, E: ParseError<Self>>(
&self,
predicate: P,
) -> IResult<Self, Self, E>
fn split_at_position<P, E: ParseError<Self>>( &self, predicate: P, ) -> IResult<Self, Self, E>
Looks for the first element of the input type for which the condition returns true,
and returns the input up to this position. Read more
Source§fn split_at_position1<P, E: ParseError<Self>>(
&self,
predicate: P,
e: ErrorKind,
) -> IResult<Self, Self, E>
fn split_at_position1<P, E: ParseError<Self>>( &self, predicate: P, e: ErrorKind, ) -> IResult<Self, Self, E>
Looks for the first element of the input type for which the condition returns true
and returns the input up to this position. Read more
Source§fn split_at_position_complete<P, E: ParseError<Self>>(
&self,
predicate: P,
) -> IResult<Self, Self, E>
fn split_at_position_complete<P, E: ParseError<Self>>( &self, predicate: P, ) -> IResult<Self, Self, E>
Looks for the first element of the input type for which the condition returns true,
and returns the input up to this position. Read more
Source§fn split_at_position1_complete<P, E: ParseError<Self>>(
&self,
predicate: P,
e: ErrorKind,
) -> IResult<Self, Self, E>
fn split_at_position1_complete<P, E: ParseError<Self>>( &self, predicate: P, e: ErrorKind, ) -> IResult<Self, Self, E>
Looks for the first element of the input type for which the condition returns true
and returns the input up to this position. Read more
Auto Trait Implementations§
impl<I> Freeze for Wrap<I>where
I: Freeze,
impl<I> RefUnwindSafe for Wrap<I>where
I: RefUnwindSafe,
impl<I> Send for Wrap<I>where
I: Send,
impl<I> Sync for Wrap<I>where
I: Sync,
impl<I> Unpin for Wrap<I>where
I: Unpin,
impl<I> UnwindSafe for Wrap<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more