Trait is_tree::traits::has_root::HasRoot

source ·
pub trait HasRoot {
    // Required method
    fn root(&self) -> Self;
}
Expand description

A trait for types that have a root.

Required Methods§

source

fn root(&self) -> Self

Gets the root of the object.

Object Safety§

This trait is not object safe.

Implementors§