Struct nu_engine::EvaluatedCommandArgs[][src]

pub struct EvaluatedCommandArgs {
    pub host: Arc<Mutex<dyn Host>>,
    pub ctrl_c: Arc<AtomicBool>,
    pub shell_manager: ShellManager,
    pub call_info: CallInfo,
    pub scope: Scope,
}

Fields

host: Arc<Mutex<dyn Host>>ctrl_c: Arc<AtomicBool>shell_manager: ShellManagercall_info: CallInfoscope: Scope

Implementations

impl EvaluatedCommandArgs[src]

pub fn new(
    host: Arc<Mutex<dyn Host>>,
    ctrl_c: Arc<AtomicBool>,
    shell_manager: ShellManager,
    call_info: CallInfo,
    scope: Scope
) -> Self
[src]

Constructs a new EvaluatedCommandArgs.

impl EvaluatedCommandArgs[src]

pub fn nth(&self, pos: usize) -> Option<&Value>[src]

pub fn expect_nth(&self, pos: usize) -> Result<&Value, ShellError>[src]

Get the nth positional argument, error if not possible

pub fn get(&self, name: &str) -> Option<&Value>[src]

pub fn has(&self, name: &str) -> bool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,