pub enum NodeKind<T, Nt> {
Terminal(T),
NonTerminal(Nt),
}Variants§
Trait Implementations§
Source§impl<T: Ord, Nt: Ord> Ord for NodeKind<T, Nt>
impl<T: Ord, Nt: Ord> Ord for NodeKind<T, Nt>
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<T: PartialOrd, Nt: PartialOrd> PartialOrd for NodeKind<T, Nt>
impl<T: PartialOrd, Nt: PartialOrd> PartialOrd for NodeKind<T, Nt>
impl<T: Copy, Nt: Copy> Copy for NodeKind<T, Nt>
impl<T: Eq, Nt: Eq> Eq for NodeKind<T, Nt>
impl<T, Nt> StructuralPartialEq for NodeKind<T, Nt>
Auto Trait Implementations§
impl<T, Nt> Freeze for NodeKind<T, Nt>
impl<T, Nt> RefUnwindSafe for NodeKind<T, Nt>where
T: RefUnwindSafe,
Nt: RefUnwindSafe,
impl<T, Nt> Send for NodeKind<T, Nt>
impl<T, Nt> Sync for NodeKind<T, Nt>
impl<T, Nt> Unpin for NodeKind<T, Nt>
impl<T, Nt> UnwindSafe for NodeKind<T, Nt>where
T: UnwindSafe,
Nt: 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