pub struct Elms<'a> { /* private fields */ }
Expand description
Custom Input Type
Implementations§
Trait Implementations§
Source§impl<'a, 'b> Compare<&'b str> for Elms<'a>
impl<'a, 'b> Compare<&'b str> for Elms<'a>
Source§fn compare(&self, t: &'b str) -> CompareResult
fn compare(&self, t: &'b str) -> CompareResult
Compares self to another value for equality
Source§fn compare_no_case(&self, t: &'b str) -> CompareResult
fn compare_no_case(&self, t: &'b str) -> CompareResult
Compares self to another value for equality
independently of the case. Read more
Source§impl<'a, 'b> Compare<Elms<'b>> for Elms<'a>
impl<'a, 'b> Compare<Elms<'b>> for Elms<'a>
Source§fn compare(&self, t: Elms<'b>) -> CompareResult
fn compare(&self, t: Elms<'b>) -> CompareResult
Compares self to another value for equality
Source§fn compare_no_case(&self, t: Elms<'b>) -> CompareResult
fn compare_no_case(&self, t: Elms<'b>) -> CompareResult
Compares self to another value for equality
independently of the case. Read more
Source§impl ContextError<Elms<'_>> for UriParseError
impl ContextError<Elms<'_>> for UriParseError
Source§impl<'a> InputIter for Elms<'a>
InputIter for Elms
impl<'a> InputIter for Elms<'a>
InputIter for Elms
This type provides essentially the same implementation as &’a u8.
Source§type Iter = Enumerate<<Elms<'a> as InputIter>::IterElem>
type Iter = Enumerate<<Elms<'a> as InputIter>::IterElem>
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§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<'a> InputLength for Elms<'a>
impl<'a> InputLength for Elms<'a>
Source§impl<'a> InputTakeAtPosition for Elms<'a>
impl<'a> InputTakeAtPosition for Elms<'a>
Source§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
Source§impl ParseError<Elms<'_>> for UriParseError
impl ParseError<Elms<'_>> for UriParseError
Source§fn from_error_kind(input: Elms<'_>, kind: ErrorKind) -> Self
fn from_error_kind(input: Elms<'_>, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(input: Elms<'_>, kind: ErrorKind, other: Self) -> Self
fn append(input: Elms<'_>, kind: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
impl<'a> StructuralPartialEq for Elms<'a>
Auto Trait Implementations§
impl<'a> Freeze for Elms<'a>
impl<'a> RefUnwindSafe for Elms<'a>
impl<'a> Send for Elms<'a>
impl<'a> Sync for Elms<'a>
impl<'a> Unpin for Elms<'a>
impl<'a> UnwindSafe for Elms<'a>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more