struct StackElement<T, Idx, P: Parser<T>> {
span: Span<Idx>,
order: StackOrder<P::Precedence, P::Delimiter>,
operator: StackOperator<P::BinaryOperator, P::UnaryOperator, P::Term>,
}
Fields§
§span: Span<Idx>
§order: StackOrder<P::Precedence, P::Delimiter>
§operator: StackOperator<P::BinaryOperator, P::UnaryOperator, P::Term>
Implementations§
Source§impl<T, Idx, P: Parser<T>> StackElement<T, Idx, P>
impl<T, Idx, P: Parser<T>> StackElement<T, Idx, P>
fn precedence(&self) -> Option<&P::Precedence>
Auto Trait Implementations§
impl<T, Idx, P> Freeze for StackElement<T, Idx, P>
impl<T, Idx, P> RefUnwindSafe for StackElement<T, Idx, P>where
Idx: RefUnwindSafe,
<P as Parser<T>>::Precedence: RefUnwindSafe,
<P as Parser<T>>::Delimiter: RefUnwindSafe,
<P as Parser<T>>::BinaryOperator: RefUnwindSafe,
<P as Parser<T>>::UnaryOperator: RefUnwindSafe,
<P as Parser<T>>::Term: RefUnwindSafe,
impl<T, Idx, P> Send for StackElement<T, Idx, P>
impl<T, Idx, P> Sync for StackElement<T, Idx, P>
impl<T, Idx, P> Unpin for StackElement<T, Idx, P>
impl<T, Idx, P> UnwindSafe for StackElement<T, Idx, P>where
Idx: UnwindSafe,
<P as Parser<T>>::Precedence: UnwindSafe,
<P as Parser<T>>::Delimiter: UnwindSafe,
<P as Parser<T>>::BinaryOperator: UnwindSafe,
<P as Parser<T>>::UnaryOperator: UnwindSafe,
<P as Parser<T>>::Term: 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> 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