pub struct PushDir<'a> { /* private fields */ }
Expand description
RAII guard returned from Shell::push_dir
.
Dropping PushDir
restores the working directory of the Shell
to the
old value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PushDir<'a>
impl<'a> RefUnwindSafe for PushDir<'a>
impl<'a> !Send for PushDir<'a>
impl<'a> !Sync for PushDir<'a>
impl<'a> Unpin for PushDir<'a>
impl<'a> UnwindSafe for PushDir<'a>
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