UnsetVariableEnvironment

Trait UnsetVariableEnvironment 

Source
pub trait UnsetVariableEnvironment: VariableEnvironment {
    // Required method
    fn unset_var(&mut self, name: &Self::VarName);
}
Expand description

An interface for unsetting shell and envrironment variables.

Required Methods§

Source

fn unset_var(&mut self, name: &Self::VarName)

Unset the value of some variable (including environment variables).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, T: ?Sized + UnsetVariableEnvironment> UnsetVariableEnvironment for &'a mut T

Source§

fn unset_var(&mut self, name: &T::VarName)

Implementors§

Source§

impl<'a, E> UnsetVariableEnvironment for EnvRestorer<'a, E>

Source§

impl<A, FM, L, V, EX, WD, B, N, ERR> UnsetVariableEnvironment for Env<A, FM, L, V, EX, WD, B, N, ERR>

Source§

impl<N, V> UnsetVariableEnvironment for VarEnv<N, V>
where N: Eq + Clone + Hash, V: Eq + Clone,