pub trait IsTree {
type Graph: VisitableGraph;
// Required method
fn is_tree(&self, root: impl AsRef<NodeID>) -> bool;
// Provided method
fn check_is_tree(&self, root: impl AsRef<NodeID>) -> Result<()> { ... }
}Expand description
A trait for a graph that supports checking whether it is a tree.
Required Associated Types§
type Graph: VisitableGraph
Required Methods§
Provided Methods§
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.