Struct PushEnv

struct PushEnv<'a> { ... }

RAII guard returned from Shell::push_env.

Dropping PushEnv restores the old value of the environmental variable.

Implementations

impl Drop for PushEnv<'_>

fn drop(self: &mut Self)

impl<'a> Debug for PushEnv<'a>

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

impl<'a> Freeze for PushEnv<'a>

impl<'a> RefUnwindSafe for PushEnv<'a>

impl<'a> Send for PushEnv<'a>

impl<'a> Sync for PushEnv<'a>

impl<'a> Unpin for PushEnv<'a>

impl<'a> UnwindSafe for PushEnv<'a>

impl<T> Any for PushEnv<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PushEnv<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PushEnv<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for PushEnv<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for PushEnv<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PushEnv<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PushEnv<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>