pub trait HasChildren<'a, T> {
// Required methods
fn children(&self) -> &[Node<'a, T>];
fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn iter(&self) -> Iter<'_, Node<'a, T>>;
fn at(&self, index: usize) -> &Node<'a, T>;
}Expand description
A trait for types that have child nodes.
This trait primarily exists for documentation purposes. Consider calling
children before writing generic code over this trait.