pub struct OwnedPath<State: PathState> { /* private fields */ }
Available on
Linux
only.Implementations§
Methods from Deref<Target = Path<S>>§
pub fn display<'a>(&'a self) -> DisplayPath<'a, S>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_os_str(&self) -> &OsStr
pub fn as_os_str_no_lead(&self) -> &OsStr
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn join<P: AsRef<Path<Rel>>>(&self, other: P) -> OwnedPath<S>
pub fn relative(&self, other: &Self) -> Option<&Path<Rel>>
pub fn components<'a>(&'a self) -> Components<'a, S> ⓘ
pub fn ancestors<'a>(&'a self) -> Ancestors<'a, S> ⓘ
Trait Implementations§
Source§impl<S: PathState> Ord for OwnedPath<S>
impl<S: PathState> Ord for OwnedPath<S>
Source§impl<S: PathState> PartialOrd<OwnedPath<S>> for Path<S>
impl<S: PathState> PartialOrd<OwnedPath<S>> for Path<S>
Source§impl<S: PathState> PartialOrd<Path<S>> for OwnedPath<S>
impl<S: PathState> PartialOrd<Path<S>> for OwnedPath<S>
Source§impl<S: PathState> PartialOrd for OwnedPath<S>
impl<S: PathState> PartialOrd for OwnedPath<S>
impl<S: PathState> Eq for OwnedPath<S>
Auto Trait Implementations§
impl<State> Freeze for OwnedPath<State>
impl<State> RefUnwindSafe for OwnedPath<State>
impl<State> Send for OwnedPath<State>
impl<State> Sync for OwnedPath<State>
impl<State> Unpin for OwnedPath<State>
impl<State> UnwindSafe for OwnedPath<State>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more