UnsetFunctionEnvironment

Trait UnsetFunctionEnvironment 

Source
pub trait UnsetFunctionEnvironment: FunctionEnvironment {
    // Required method
    fn unset_function(&mut self, name: &Self::FnName);
}
Expand description

An interface for unsetting shell functions.

Required Methods§

Source

fn unset_function(&mut self, name: &Self::FnName)

Removes the definition of a function if it was registered.

Implementations on Foreign Types§

Source§

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

Source§

fn unset_function(&mut self, name: &Self::FnName)

Implementors§

Source§

impl<A, FM, L, V, EX, WD, B, N, ERR> UnsetFunctionEnvironment for Env<A, FM, L, V, EX, WD, B, N, ERR>
where N: Hash + Eq + Clone,

Source§

impl<N, F> UnsetFunctionEnvironment for FnEnv<N, F>
where N: Clone + Hash + Eq, F: Clone,