pub trait PurePath: Sized {
// Required methods
fn parent(&self) -> Option<Self>;
fn file_name(&self) -> Option<&str>;
fn join_in_place(&mut self, path: &Self);
fn join(&self, path: &Self) -> Self;
fn is_absolute(&self) -> bool;
fn components(&self) -> impl DoubleEndedIterator<Item = Component<'_>>;
}Expand description
A pure path.
Required Methods§
Sourcefn join_in_place(&mut self, path: &Self)
fn join_in_place(&mut self, path: &Self)
Joins the given path in place.
Sourcefn is_absolute(&self) -> bool
fn is_absolute(&self) -> bool
Returns whether the path is absolute.
Sourcefn components(&self) -> impl DoubleEndedIterator<Item = Component<'_>>
fn components(&self) -> impl DoubleEndedIterator<Item = Component<'_>>
Returns the components of the path.
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.