pub struct Interface<W: Write> { /* private fields */ }Implementations§
source§impl<W: Write> Interface<W>
impl<W: Write> Interface<W>
pub fn new() -> Interface<W>
pub fn build() -> Interface<W>
pub fn add_definition( &mut self, keyword: &str, actions: Vec<Action<W>>, description: String )
pub fn create_editor(&self) -> MyResult<CommandEditor>
pub fn adjust_editor(&self, editor: &mut CommandEditor)
pub fn get_operation(&self, token: &str) -> Option<Rc<Operation<W>>>
pub fn get_directive(&self, token: &str) -> Option<Rc<Directive<W>>>
pub fn get_definition(&self, token: &str) -> Option<Vec<Action<W>>>
pub fn show_help(&self, writer: &mut W, script: bool) -> MyResult<()>
Auto Trait Implementations§
impl<W> Freeze for Interface<W>
impl<W> RefUnwindSafe for Interface<W>
impl<W> !Send for Interface<W>
impl<W> !Sync for Interface<W>
impl<W> Unpin for Interface<W>
impl<W> UnwindSafe for Interface<W>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more