pub trait HasBranches<T> {
// Required method
fn branches_impl(self) -> impl Iterator<Item = T>;
}Expand description
This is the trait one should implement to provide a way to iterate over the branches of a type.
Required Methods§
Sourcefn branches_impl(self) -> impl Iterator<Item = T>
fn branches_impl(self) -> impl Iterator<Item = T>
This is the method that should be implemented to provide a way to iterate over the branches of a type.
It’s discouraged to use this method directly. Instead, use the branches method from the HasBranchesAPIV2 trait.
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.