Trait is_tree::traits::has_branches::HasBranchesAPIV2
source · pub trait HasBranchesAPIV2<'a> {
// Provided methods
fn branches<T>(&'a self) -> impl Iterator<Item = T>
where &'a Self: HasBranches<T>,
T: 'a { ... }
fn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>
where &'a mut Self: HasBranches<T>,
T: 'a { ... }
}
Expand description
This is the trait one should implement to provide a way to iterate over the branches of a type.
Provided Methods§
sourcefn branches<T>(&'a self) -> impl Iterator<Item = T>where
&'a Self: HasBranches<T>,
T: 'a,
fn branches<T>(&'a self) -> impl Iterator<Item = T>where
&'a Self: HasBranches<T>,
T: 'a,
Iterates over the branches of a type.
sourcefn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>where
&'a mut Self: HasBranches<T>,
T: 'a,
fn branches_mut<T>(&'a mut self) -> impl Iterator<Item = T>where
&'a mut Self: HasBranches<T>,
T: 'a,
Iterates over the branches of a type mutably.
Object Safety§
This trait is not object safe.