pub struct PathContext { /* private fields */ }Expand description
Explicit context for host-path interpretation.
Implementations§
Source§impl PathContext
impl PathContext
Sourcepub fn with_home_directory(self, directory: impl Into<PathBuf>) -> Self
pub fn with_home_directory(self, directory: impl Into<PathBuf>) -> Self
Supplies a caller-owned home directory for ~ expansion.
Sourcepub fn home_directory(&self) -> Option<&Path>
pub fn home_directory(&self) -> Option<&Path>
Returns the explicit home directory, if supplied.
Trait Implementations§
Source§impl Clone for PathContext
impl Clone for PathContext
Source§impl Debug for PathContext
impl Debug for PathContext
Source§impl Default for PathContext
impl Default for PathContext
impl Eq for PathContext
Source§impl PartialEq for PathContext
impl PartialEq for PathContext
impl StructuralPartialEq for PathContext
Auto Trait Implementations§
impl Freeze for PathContext
impl RefUnwindSafe for PathContext
impl Send for PathContext
impl Sync for PathContext
impl Unpin for PathContext
impl UnsafeUnpin for PathContext
impl UnwindSafe for PathContext
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