Trait is_tree::traits::has_path_segment::HasPathSegment
source · pub trait HasPathSegment {
// Required method
fn path_segment(&self) -> String;
// Provided method
fn is(&self, identifier: impl PartialEq<String>) -> bool { ... }
}
Expand description
This trait should be implemented by types that have a path segment.
Required Methods§
sourcefn path_segment(&self) -> String
fn path_segment(&self) -> String
Gets the path segment of the type.
Provided Methods§
Object Safety§
This trait is not object safe.