Trait 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.

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.

Implementors§

Source§

impl<'a, Parent, Value, T> HasBranches<T> for &'a Visitor<Parent, Value>
where Visitor<Parent, Value>: UnsafeClone, T: From<Visitor<Parent, Value>> + 'a, &'a T: HasBranches<T>,