pub enum ReplCommand {
Eval(Located<SurfaceExpr>),
Type(Located<SurfaceExpr>),
Check(Located<Decl>),
Load(String),
ShowEnv,
Clear,
Help,
Quit,
}Expand description
REPL command type.
Variants§
Eval(Located<SurfaceExpr>)
Evaluate an expression
Type(Located<SurfaceExpr>)
Show type of an expression
Check(Located<Decl>)
Check a declaration
Load(String)
Load a file
ShowEnv
Show environment
Clear
Clear environment
Help
Show help
Quit
Quit REPL
Trait Implementations§
Source§impl Clone for ReplCommand
impl Clone for ReplCommand
Source§fn clone(&self) -> ReplCommand
fn clone(&self) -> ReplCommand
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 ReplCommand
impl Debug for ReplCommand
Source§impl PartialEq for ReplCommand
impl PartialEq for ReplCommand
impl StructuralPartialEq for ReplCommand
Auto Trait Implementations§
impl Freeze for ReplCommand
impl RefUnwindSafe for ReplCommand
impl Send for ReplCommand
impl Sync for ReplCommand
impl Unpin for ReplCommand
impl UnsafeUnpin for ReplCommand
impl UnwindSafe for ReplCommand
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