Enum bismuth::cube::Node
[−]
[src]
pub enum Node { Leaf(LeafNode), Branch(BranchNode), }
Variants
Leaf(LeafNode)
Branch(BranchNode)
Methods
impl Node
[src]
fn is_leaf(&self) -> bool
fn as_leaf(&self) -> Option<&LeafNode>
fn as_leaf_mut(&mut self) -> Option<&mut LeafNode>
fn as_branch(&self) -> Option<&BranchNode>
fn as_branch_mut(&mut self) -> Option<&mut BranchNode>
Trait Implementations
impl AsRef<Node> for Node
[src]
fn as_ref(&self) -> &Self
Performs the conversion.
impl AsMut<Node> for Node
[src]
fn as_mut(&mut self) -> &mut Self
Performs the conversion.
impl Clone for Node
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more