IAction

Trait IAction 

Source
pub trait IAction: INode {
    // Required method
    fn invoke(&mut self, args: &str, writer: &mut dyn IWrite);
}
Expand description

Action node interface.

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

Required Methods§

Source

fn invoke(&mut self, args: &str, writer: &mut dyn IWrite)

Invokes the closure associated with the Action.

Given argument string and a console interface to writer output to.

Trait Implementations§

Source§

impl Debug for dyn IAction + '_

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<'a, F: FnMut(&str, &mut dyn IWrite)> IAction for Action<'a, F>