pub struct Engine<W: Write> { /* private fields */ }Implementations§
Source§impl<W: Write> Engine<W>
impl<W: Write> Engine<W>
pub fn new(config: Config, chars: BracketChars) -> MyResult<Self>
pub fn parse_input(&mut self, writer: &mut W) -> MyResult<()>
pub fn flat_values( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn clear_values( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn pop_value( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn dup_value( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn swap_values( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn cut_value( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn copy_value( &mut self, stack: &mut ValueStack, _undo: &mut Undo, _redo: &mut Undo, _keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn paste_value( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn import_file( &mut self, writer: &mut W, stack: &mut ValueStack, tokens: Vec<String>, ) -> MyResult<bool>
pub fn export_file( &mut self, _writer: &mut W, stack: &mut ValueStack, tokens: Vec<String>, ) -> MyResult<bool>
pub fn set_variable( &mut self, writer: &mut W, stack: &mut ValueStack, token: Option<String>, ) -> MyResult<bool>
pub fn define_function( &mut self, writer: &mut W, _stack: &mut ValueStack, tokens: Vec<String>, ) -> MyResult<bool>
pub fn apply_all( &mut self, writer: &mut W, keyword: Option<&str>, stack: &mut ValueStack, undo: &mut Undo, _redo: &mut Undo, tokens: Vec<String>, ) -> MyResult<bool>
pub fn undo_stack( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, _keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn redo_stack( &mut self, stack: &mut ValueStack, undo: &mut Undo, redo: &mut Undo, _keyword: Option<&str>, ) -> MyResult<Option<bool>>
pub fn show_history( &mut self, writer: &mut W, _stack: &mut ValueStack, ) -> MyResult<Option<bool>>
pub fn show_stack( &mut self, writer: &mut W, stack: &mut ValueStack, ) -> MyResult<Option<bool>>
pub fn show_help( &mut self, writer: &mut W, _stack: &mut ValueStack, ) -> MyResult<Option<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