pub struct RecoveredScript {
pub statements: Vec<(Stmt, Span)>,
pub errors: Vec<QqlError>,
}Expand description
A script parse that keeps going after syntax errors.
Fields§
§statements: Vec<(Stmt, Span)>Statements that parsed successfully, in source order, with their spans.
errors: Vec<QqlError>Every recoverable syntax error, in source order.
Implementations§
Trait Implementations§
Source§impl Clone for RecoveredScript
impl Clone for RecoveredScript
Source§fn clone(&self) -> RecoveredScript
fn clone(&self) -> RecoveredScript
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecoveredScript
impl RefUnwindSafe for RecoveredScript
impl Send for RecoveredScript
impl Sync for RecoveredScript
impl Unpin for RecoveredScript
impl UnsafeUnpin for RecoveredScript
impl UnwindSafe for RecoveredScript
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