pub struct YesAnd<'input, T> {
pub yes: T,
pub and: &'input str,
pub could_also: Vec<String>,
}
Expand description
Successful parse so far.
Fields§
§yes: T
The value.
and: &'input str
The remaining input.
could_also: Vec<String>
Other valid options.
Trait Implementations§
impl<'input, T: Eq> Eq for YesAnd<'input, T>
impl<'input, T> StructuralPartialEq for YesAnd<'input, T>
Auto Trait Implementations§
impl<'input, T> Freeze for YesAnd<'input, T>where
T: Freeze,
impl<'input, T> RefUnwindSafe for YesAnd<'input, T>where
T: RefUnwindSafe,
impl<'input, T> Send for YesAnd<'input, T>where
T: Send,
impl<'input, T> Sync for YesAnd<'input, T>where
T: Sync,
impl<'input, T> Unpin for YesAnd<'input, T>where
T: Unpin,
impl<'input, T> UnwindSafe for YesAnd<'input, T>where
T: 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<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