pub enum ExtendedReplCommand {
SetOption(String, String),
GetOption(String),
History,
Undo,
Reduce(Located<SurfaceExpr>),
Stats,
Search(String),
Print(String),
}Expand description
Extended REPL command including option management and history.
Variants§
SetOption(String, String)
Set an option: :set name value
GetOption(String)
Get an option: :get name
History
Show command history: :history
Undo
Undo last declaration: :undo
Reduce(Located<SurfaceExpr>)
Print a term’s normal form: :reduce expr
Stats
Show statistics: :stats
Search(String)
Search for a name: :search pattern
Print(String)
Print declaration info: :print name
Trait Implementations§
Source§impl Clone for ExtendedReplCommand
impl Clone for ExtendedReplCommand
Source§fn clone(&self) -> ExtendedReplCommand
fn clone(&self) -> ExtendedReplCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtendedReplCommand
impl Debug for ExtendedReplCommand
Source§impl PartialEq for ExtendedReplCommand
impl PartialEq for ExtendedReplCommand
impl StructuralPartialEq for ExtendedReplCommand
Auto Trait Implementations§
impl Freeze for ExtendedReplCommand
impl RefUnwindSafe for ExtendedReplCommand
impl Send for ExtendedReplCommand
impl Sync for ExtendedReplCommand
impl Unpin for ExtendedReplCommand
impl UnsafeUnpin for ExtendedReplCommand
impl UnwindSafe for ExtendedReplCommand
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