pub struct Engine<W: Write> { /* private fields */ }Implementations§
source§impl<W: Write> Engine<W>
impl<W: Write> Engine<W>
pub fn new(config: Config) -> MyResult<Engine<W>>
pub fn parse_input(&mut self, writer: &mut W) -> MyResult<()>
pub fn clear_values( &mut self, undo: &mut Undo, redo: &mut Undo, token: Option<&str> ) -> MyResult<bool>
pub fn pop_value( &mut self, undo: &mut Undo, redo: &mut Undo, token: Option<&str> ) -> MyResult<bool>
pub fn dup_value( &mut self, undo: &mut Undo, redo: &mut Undo, token: Option<&str> ) -> MyResult<bool>
pub fn swap_values( &mut self, undo: &mut Undo, redo: &mut Undo, token: Option<&str> ) -> MyResult<bool>
pub fn cut_value( &mut self, undo: &mut Undo, redo: &mut Undo, token: Option<&str> ) -> MyResult<bool>
pub fn copy_value( &mut self, _undo: &mut Undo, _redo: &mut Undo, _token: Option<&str> ) -> MyResult<bool>
pub fn paste_value( &mut self, undo: &mut Undo, redo: &mut Undo, token: Option<&str> ) -> MyResult<bool>
pub fn import_file( &mut self, writer: &mut W, tokens: Vec<String> ) -> MyResult<bool>
pub fn export_file( &mut self, _writer: &mut W, tokens: Vec<String> ) -> MyResult<bool>
pub fn define_function( &mut self, _writer: &mut W, tokens: Vec<String> ) -> MyResult<bool>
pub fn undo_stack( &mut self, undo: &mut Undo, redo: &mut Undo, _token: Option<&str> ) -> MyResult<bool>
pub fn redo_stack( &mut self, undo: &mut Undo, redo: &mut Undo, _token: Option<&str> ) -> MyResult<bool>
pub fn show_history(&mut self, writer: &mut W) -> MyResult<bool>
pub fn show_stack(&mut self, writer: &mut W) -> MyResult<bool>
pub fn show_help(&mut self, writer: &mut W) -> MyResult<bool>
Auto Trait Implementations§
impl<W> Freeze for Engine<W>
impl<W> !RefUnwindSafe for Engine<W>
impl<W> !Send for Engine<W>
impl<W> !Sync for Engine<W>
impl<W> Unpin for Engine<W>
impl<W> !UnwindSafe for Engine<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