pub trait PathSegment: Clone + Eq + Hash + Debug {
    // Required methods
    fn empty() -> Self;
    fn is_empty(&self) -> bool;
}
Expand description

Owned path segment.

Required Methods§

source

fn empty() -> Self

source

fn is_empty(&self) -> bool

Check if the segment is empty.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PathSegment for String

source§

fn empty() -> Self

source§

fn is_empty(&self) -> bool

source§

impl PathSegment for OsString

source§

fn empty() -> Self

source§

fn is_empty(&self) -> bool

source§

impl<'a> PathSegment for Cow<'a, str>

source§

fn empty() -> Self

source§

fn is_empty(&self) -> bool

Implementors§