Struct PushEnv
#[must_use]
pub struct PushEnv<'a> { /* private fields */ }
RAII guard returned from Shell::push_env.
Dropping PushEnv restores the old value of the environmental variable.
Trait Implementations
impl Drop for PushEnv<'_>
fn drop(&mut self)
impl<'a> Debug for PushEnv<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a> !Send for PushEnv<'a>
impl<'a> !Sync for PushEnv<'a>
impl<'a> Freeze for PushEnv<'a>
impl<'a> RefUnwindSafe for PushEnv<'a>
impl<'a> Unpin for PushEnv<'a>
impl<'a> UnsafeUnpin for PushEnv<'a>
impl<'a> UnwindSafe for PushEnv<'a>
Blanket Implementations
impl<T> Any for PushEnv<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PushEnv<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PushEnv<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PushEnv<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for PushEnv<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PushEnv<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PushEnv<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>