[][src]Trait cvar::IAction

pub trait IAction: INode {
    fn invoke(&mut self, args: &[&str], console: &mut dyn IConsole);
}

Action node interface.

Provides an object safe interface for actions, type erasing its implementation.

Required methods

fn invoke(&mut self, args: &[&str], console: &mut dyn IConsole)

Invokes the closure associated with the Action.

Given pre-tokenized arguments and a console interface to write output to.

Loading content...

Trait Implementations

impl<'_> Debug for dyn IAction + '_[src]

Implementors

impl<'a, F: FnMut(&[&str], &mut dyn IConsole)> IAction for Action<'a, F>[src]

Loading content...