pub enum ReplCommand {
Empty,
Comment,
Quit,
Invoke {
module: String,
args: Value,
},
Unknown(String),
}Expand description
A parsed REPL line.
Variants§
Empty
Blank line — no-op.
Comment
Line started with # — comment, ignored.
Quit
User asked to leave the REPL.
Invoke
Module invocation.
Unknown(String)
Reserved for future grammar errors. Unused at M0 (we treat any
non-empty/non-comment/non-quit line as an Invoke), but kept on the
public API so callers can already match on it.
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