pub trait Tree: Node {
type Children<'c>: 'c + IntoIterator<Item = &'c Self>
where Self: 'c;
// Required method
fn children(&self) -> Self::Children<'_>;
}
Expand description
An abstraction for a recursive tree.
Required Associated Types§
Sourcetype Children<'c>: 'c + IntoIterator<Item = &'c Self>
where
Self: 'c
type Children<'c>: 'c + IntoIterator<Item = &'c Self> where Self: 'c
Required 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.