Trait is_tree::traits::has_get::HasGet

source ·
pub trait HasGet {
    // Provided method
    fn get_impl<T>(self, segment: impl Into<String>) -> Option<T>
       where Self: HasBranches<T> + Sized,
             T: HasPathSegment { ... }
}
Expand description

This is the trait one should implement to provide a way to get branches by their path segments.

Provided Methods§

source

fn get_impl<T>(self, segment: impl Into<String>) -> Option<T>
where Self: HasBranches<T> + Sized, T: HasPathSegment,

Gets a branch by its path segment. It’s discouraged to use this method directly. Instead, use the get and get_mut method from the HasGetAPI trait.

Implementors§

source§

impl<T> HasGet for T