Trait cvar::IAction[][src]

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)[src]

Invokes the closure associated with the Action.

Given argument string 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...