Trait is_tree::traits::is_path_segment::IsPathSegment

source ·
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> { ... }
}
Expand description

A trait for types that can be used as path segments.

Required Methods§

source

fn root() -> Self

Gets the root path segment.

source

fn self_() -> Self

Gets the self path segment.

source

fn super_() -> Self

Gets the super path segment.

Provided Methods§

source

fn kind(&self) -> PathSegment<&Self>

Gets the kind of path segment.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IsPathSegment for String

source§

fn root() -> Self

source§

fn self_() -> Self

source§

fn super_() -> Self

Implementors§