pub enum DispatchedPath {
Abs(OwnedPath<Abs>),
Rel(OwnedPath<Rel>),
}Available on
Linux and crate feature fs only.Expand description
An OwnedPath with a statically dispatched state. TODO
Variants§
Implementations§
Source§impl DispatchedPath
impl DispatchedPath
pub fn abs_or_resolve(self, target: OwnedPath<Abs>) -> OwnedPath<Abs>
pub fn rel_or_make_relative<P: AsRef<Path<Abs>>>( self, target: P, ) -> OwnedPath<Rel>
pub fn len(&self) -> NonZero<usize>
pub fn as_os_str(&self) -> &OsStr
pub fn as_os_str_no_lead(&self) -> &OsStr
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn basename(&self) -> &OsStr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DispatchedPath
impl RefUnwindSafe for DispatchedPath
impl Send for DispatchedPath
impl Sync for DispatchedPath
impl Unpin for DispatchedPath
impl UnwindSafe for DispatchedPath
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