pub enum Symbol<B, U, A>{
Binary(B),
Unary(U),
Atom(A),
Left,
Right,
}Variants§
Implementations§
Source§impl<B, U, A> Symbol<B, U, A>
A generic type for when we need to compare over B, U, and A, the types
that go into our formulae. Since they implement Ord individually this wrapper
type allows comparison between any of the three types assuming the convention
that U(nary) operators always have higher precedence than B(inary) operators.
impl<B, U, A> Symbol<B, U, A>
A generic type for when we need to compare over B, U, and A, the types that go into our formulae. Since they implement Ord individually this wrapper type allows comparison between any of the three types assuming the convention that U(nary) operators always have higher precedence than B(inary) operators.
Trait Implementations§
Source§impl<B, U, A> Match for Symbol<B, U, A>
impl<B, U, A> Match for Symbol<B, U, A>
Source§impl<B, U, A> Ord for Symbol<B, U, A>
impl<B, U, A> Ord for Symbol<B, U, A>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<B, U, A> PartialOrd for Symbol<B, U, A>
impl<B, U, A> PartialOrd for Symbol<B, U, A>
impl<B, U, A> Copy for Symbol<B, U, A>
impl<B, U, A> Eq for Symbol<B, U, A>
impl<B, U, A> StructuralPartialEq for Symbol<B, U, A>
Auto Trait Implementations§
impl<B, U, A> Freeze for Symbol<B, U, A>
impl<B, U, A> RefUnwindSafe for Symbol<B, U, A>
impl<B, U, A> Send for Symbol<B, U, A>
impl<B, U, A> Sync for Symbol<B, U, A>
impl<B, U, A> Unpin for Symbol<B, U, A>
impl<B, U, A> UnwindSafe for Symbol<B, U, 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