pub trait HasPathSegment: KnowsPathSegment {
    // Required method
    fn path_segment(&self) -> &Self::PathSegment;

    // Provided method
    fn is(&self, identifier: impl PartialEq<Self::PathSegment>) -> bool { ... }
}

Required Methods§

source

fn path_segment(&self) -> &Self::PathSegment

Provided Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HasPathSegment for &()

source§

fn path_segment(&self) -> &Self::PathSegment

source§

impl HasPathSegment for ()

source§

fn path_segment(&self) -> &Self::PathSegment

source§

impl HasPathSegment for String

source§

fn path_segment(&self) -> &Self::PathSegment

Implementors§

source§

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

source§

impl<'a, Value> HasPathSegment for &'a RootVisitor<Value>
where Value: HasPathSegment,

source§

impl<'a, Value> HasPathSegment for RootVisitor<Value>
where Value: HasPathSegment,