pub struct Repl { /* private fields */ }Expand description
The Vernacular REPL.
Maintains a kernel context and executes commands against it.
Implementations§
Source§impl Repl
impl Repl
Sourcepub fn execute(&mut self, input: &str) -> Result<String, InterfaceError>
pub fn execute(&mut self, input: &str) -> Result<String, InterfaceError>
Execute a command string.
Returns the output string (for Check/Eval) or empty string (for Definition/Inductive).
Sourcepub fn context_mut(&mut self) -> &mut Context
pub fn context_mut(&mut self) -> &mut Context
Get a mutable reference to the underlying context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Repl
impl RefUnwindSafe for Repl
impl Send for Repl
impl Sync for Repl
impl Unpin for Repl
impl UnwindSafe for Repl
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