pub struct Interface<W: Write> { /* private fields */ }Implementations§
Source§impl<W: Write> Interface<W>
impl<W: Write> Interface<W>
pub fn new() -> Self
pub fn build() -> Self
pub fn insert_definition( &mut self, keyword: &str, actions: Vec<Action<W>>, input: Count, output: Count, description: String, )
pub fn remove_definition(&mut self, keyword: &str)
pub fn insert_variable(&mut self, keyword: String, value: ValueRef) -> bool
pub fn remove_variable(&mut self, keyword: &str)
pub fn get_variable(&self, keyword: &str) -> Option<ValueRef>
pub fn get_variables(&self) -> &HashMap<String, ValueRef>
pub fn create_editor(&self) -> MyResult<CommandEditor>
pub fn adjust_editor(&self, editor: &mut CommandEditor)
pub fn get_operation(&self, keyword: &str) -> Option<Rc<Operation<W>>>
pub fn get_directive(&self, keyword: &str) -> Option<Rc<Directive<W>>>
pub fn get_definition(&self, keyword: &str) -> Option<Vec<Action<W>>>
pub fn show_help(&self, writer: &mut W, interact: bool) -> MyResult<()>
pub fn show_definitions(&self, writer: &mut W, interact: 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