SetArgumentsEnvironment

Trait SetArgumentsEnvironment 

Source
pub trait SetArgumentsEnvironment: ArgumentsEnvironment {
    type Args;

    // Required method
    fn set_args(&mut self, new_args: Self::Args) -> Self::Args;
}
Expand description

An interface for setting shell and function arguments.

Required Associated Types§

Source

type Args

A collection of arguments to set.

Required Methods§

Source

fn set_args(&mut self, new_args: Self::Args) -> Self::Args

Changes the environment’s arguments to new_args and returns the old arguments.

Implementations on Foreign Types§

Source§

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

Source§

type Args = <T as SetArgumentsEnvironment>::Args

Source§

fn set_args(&mut self, new_args: Self::Args) -> Self::Args

Implementors§

Source§

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

Source§

impl<T: Clone> SetArgumentsEnvironment for ArgsEnv<T>