MutableTree

Trait MutableTree 

Source
pub trait MutableTree: VisitableTree + MutableForest {
    // Required method
    fn set_root(&mut self, root: impl AsRef<NodeID>) -> Result<()>;

    // Provided method
    fn setting_root(&self, root: impl AsRef<NodeID>) -> Result<Self>
       where Self: Clone + Sized { ... }
}

Required Methods§

Source

fn set_root(&mut self, root: impl AsRef<NodeID>) -> Result<()>

Provided Methods§

Source

fn setting_root(&self, root: impl AsRef<NodeID>) -> Result<Self>
where Self: Clone + Sized,

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.

Implementors§

Source§

impl<Inner> MutableTree for Tree<Inner>
where Inner: MutableGraph,