pub trait OpenNodeRef<T> {
// Required methods
fn is_boundary(&self) -> bool;
fn boundary(&self) -> impl Iterator<Item = Self>;
fn get_value(&self) -> Option<&T>;
fn parent_value(&self) -> Option<&T>;
}
Expand description
Extension trait for nodes in an open tree.
Required Methods§
Sourcefn is_boundary(&self) -> bool
fn is_boundary(&self) -> bool
Is this node a boundary node?
Sourcefn boundary(&self) -> impl Iterator<Item = Self>
fn boundary(&self) -> impl Iterator<Item = Self>
Iterates over boundary of tree accessible from this node.
Sourcefn parent_value(&self) -> Option<&T>
fn parent_value(&self) -> Option<&T>
Gets a reference to the value of this node’s parent, if it has a parent.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.