Trait HasGetAPI

Source
pub trait HasGetAPI<'a> {
    // Provided method
    fn get<T>(&'a self, segment: impl Into<String>) -> Option<T>
       where &'a Self: HasGet + HasBranches<T>,
             T: HasPathSegment + 'a { ... }
}
Expand description

This is an API trait for getting branches by their path segments.

Provided Methods§

Source

fn get<T>(&'a self, segment: impl Into<String>) -> Option<T>
where &'a Self: HasGet + HasBranches<T>, T: HasPathSegment + 'a,

Gets a branch by its path segment.

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, T> HasGetAPI<'a> for T