pub struct Node<Op>where
Op: Debug + Clone + PartialEq,{
pub operator: Option<Op>,
pub parent: Option<NodeId>,
pub left: Child,
pub right: Child,
pub unary: bool,
}
Expand description
A node in the expression tree
You probably don’t need to use this struct unless you want to inspect the tree
Fields
operator: Option<Op>
parent: Option<NodeId>
left: Child
right: Child
unary: bool
Implementations
Trait Implementations
sourceimpl<Op: PartialEq> PartialEq<Node<Op>> for Node<Op>where
Op: Debug + Clone + PartialEq,
impl<Op: PartialEq> PartialEq<Node<Op>> for Node<Op>where
Op: Debug + Clone + PartialEq,
impl<Op> StructuralPartialEq for Node<Op>where
Op: Debug + Clone + PartialEq,
Auto Trait Implementations
impl<Op> RefUnwindSafe for Node<Op>where
Op: RefUnwindSafe,
impl<Op> Send for Node<Op>where
Op: Send,
impl<Op> Sync for Node<Op>where
Op: Sync,
impl<Op> Unpin for Node<Op>where
Op: Unpin,
impl<Op> UnwindSafe for Node<Op>where
Op: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more