Trait is_tree::traits::has_branches::HasBranches

source ·
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§

source

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.

Object Safety§

This trait is not object safe.

Implementors§