pub struct BoxPath(/* private fields */);Implementations§
Source§impl BoxPath
impl BoxPath
pub fn new<P: AsRef<Path>>(path: P) -> Result<BoxPath, IntoBoxPathError>
pub fn to_path_buf(&self) -> PathBuf
pub fn parent(&self) -> Option<BoxPath>
pub fn filename(&self) -> String
pub fn depth(&self) -> usize
pub fn starts_with(&self, other: &BoxPath) -> bool
pub fn join<P: AsRef<Path>>(&self, tail: P) -> Result<BoxPath, IntoBoxPathError>
pub fn iter(&self) -> Split<'_, &str>
Trait Implementations§
Source§impl Ord for BoxPath
impl Ord for BoxPath
Source§impl PartialOrd for BoxPath
impl PartialOrd for BoxPath
impl Eq for BoxPath
impl StructuralPartialEq for BoxPath
Auto Trait Implementations§
impl Freeze for BoxPath
impl RefUnwindSafe for BoxPath
impl Send for BoxPath
impl Sync for BoxPath
impl Unpin for BoxPath
impl UnwindSafe for BoxPath
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