Trait PathSegment

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

Borrowed path segment.

Required Methods§

Source

fn is_empty(&self) -> bool

Check if the segment is empty.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PathSegment for str

Source§

fn is_empty(&self) -> bool

Source§

impl PathSegment for OsStr

Source§

fn is_empty(&self) -> bool

Implementors§