pub trait IsPathSegment: PartialEq + Eq + Hash + Clone {
    // Required methods
    fn root() -> Self;
    fn self_() -> Self;
    fn super_() -> Self;

    // Provided method
    fn kind(&self) -> PathSegment<&Self> { ... }
}

Required Methods§

source

fn root() -> Self

source

fn self_() -> Self

source

fn super_() -> Self

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IsPathSegment for ()

source§

fn root() -> Self

source§

fn self_() -> Self

source§

fn super_() -> Self

source§

impl IsPathSegment for String

source§

fn root() -> Self

source§

fn self_() -> Self

source§

fn super_() -> Self

Implementors§