enum StackOperator<B, U, T> {
None {
term: Option<T>,
},
Binary {
binary: B,
unary: Option<U>,
},
Unary {
unary: U,
term: Option<T>,
},
}
Variants§
Implementations§
Source§impl<B, U, T> StackOperator<B, U, T>
impl<B, U, T> StackOperator<B, U, T>
fn unary_delimiter(unary: Option<U>, term: Option<T>) -> Self
fn expression_kind_rhs(self) -> Option<ExpressionKind<B, U, T>>
fn expression_kind_no_rhs(self) -> Option<ExpressionKind<B, U, T>>
fn can_have_no_rhs(&self) -> bool
Trait Implementations§
Source§impl<B: Clone, U: Clone, T: Clone> Clone for StackOperator<B, U, T>
impl<B: Clone, U: Clone, T: Clone> Clone for StackOperator<B, U, T>
Source§fn clone(&self) -> StackOperator<B, U, T>
fn clone(&self) -> StackOperator<B, U, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<B: Copy, U: Copy, T: Copy> Copy for StackOperator<B, U, T>
Auto Trait Implementations§
impl<B, U, T> Freeze for StackOperator<B, U, T>
impl<B, U, T> RefUnwindSafe for StackOperator<B, U, T>
impl<B, U, T> Send for StackOperator<B, U, T>
impl<B, U, T> Sync for StackOperator<B, U, T>
impl<B, U, T> Unpin for StackOperator<B, U, T>
impl<B, U, T> UnwindSafe for StackOperator<B, U, T>
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