pub enum ReplParse {
Complete(Script),
Incomplete(Diagnostic),
Error(Diagnostic),
}Expand description
The outcome of parsing an interactive REPL snippet.
Variants§
Complete(Script)
A snippet that parsed cleanly and is ready to run.
Incomplete(Diagnostic)
A snippet that is not finished — a half-typed block or definition, or an open bracket/string — carrying the diagnostic it would raise if forced. The REPL keeps reading lines until it completes.
Error(Diagnostic)
A genuine syntax error, which the REPL reports and moves past.
Auto Trait Implementations§
impl Freeze for ReplParse
impl RefUnwindSafe for ReplParse
impl Send for ReplParse
impl Sync for ReplParse
impl Unpin for ReplParse
impl UnsafeUnpin for ReplParse
impl UnwindSafe for ReplParse
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