pub struct CdGuard { /* private fields */ }
Expand description
A struct that changes the current working directory to a specified path.
When an instance of this struct goes out of scope (i.e. it is dropped), it automatically restores the original current working directory.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CdGuard
impl RefUnwindSafe for CdGuard
impl Send for CdGuard
impl Sync for CdGuard
impl Unpin for CdGuard
impl UnwindSafe for CdGuard
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