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§

source

fn path_segment(&self) -> String

Gets the path segment of the type.

Provided Methods§

source

fn is(&self, identifier: impl PartialEq<String>) -> bool

Checks if the type is identified by the given path segment.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HasPathSegment for String

source§

impl<T: HasPathSegment> HasPathSegment for &T

source§

impl<T: HasPathSegment> HasPathSegment for &mut T

Implementors§

source§

impl<Parent, Value> HasPathSegment for Visitor<Parent, Value>
where Value: HasPathSegment,