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§
Provided Methods§
Sourcefn kind(&self) -> PathSegment<&Self>
fn kind(&self) -> PathSegment<&Self>
Gets the kind of path segment.
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.