Struct smtree::tree::TreeNode [−][src]
pub struct TreeNode<V> { /* fields omitted */ }
Expand description
A node in the SMT, consisting of the links to its parent, child nodes, value and node type.
Implementations
Returns the reference to the left child of the tree node.
If the child node doesn’t exist, return None
.
Returns the reference to the right child of the tree node.
If the child node doesn’t exist, return None
.
Returns the reference to the child in the input direction of the tree node.
If the child node doesn’t exist, return None
.
Returns the reference to the parent of the tree node.
If the parent node doesn’t exist, return None
.
Returns the node type.
Set the reference to the parent node as the input.
Set the tree node type as the input.
Trait Implementations
Auto Trait Implementations
impl<V> RefUnwindSafe for TreeNode<V> where
V: RefUnwindSafe,
impl<V> UnwindSafe for TreeNode<V> where
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more