Struct PushDir

#[must_use]
pub struct PushDir<'a> { /* private fields */ }

RAII guard returned from Shell::push_dir.

Dropping PushDir restores the working directory of the Shell to the old value.

Trait Implementations

impl Drop for PushDir<'_>

fn drop(&mut self)

impl<'a> Debug for PushDir<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a> !Send for PushDir<'a>

impl<'a> !Sync for PushDir<'a>

impl<'a> Freeze for PushDir<'a>

impl<'a> RefUnwindSafe for PushDir<'a>

impl<'a> Unpin for PushDir<'a>

impl<'a> UnsafeUnpin for PushDir<'a>

impl<'a> UnwindSafe for PushDir<'a>

Blanket Implementations

impl<T> Any for PushDir<'a> where T: 'static + ?Sized,

impl<T> Borrow<T> for PushDir<'a> where T: ?Sized,

impl<T> BorrowMut<T> for PushDir<'a> where T: ?Sized,

impl<T> From<T> for PushDir<'a>

impl<T, U> Into<U> for PushDir<'a> where U: From<T>,

impl<T, U> TryFrom<U> for PushDir<'a> where U: Into<T>,

impl<T, U> TryInto<U> for PushDir<'a> where U: TryFrom<T>,