pub struct RecoverySalvageProfile {
pub catastrophic: bool,
pub recovered_count: usize,
pub error_node_count: usize,
pub first_unrecovered_error_node: Option<String>,
pub class: RecoverySalvageClass,
}Expand description
Per-file recovery/salvage summary.
Fields§
§catastrophic: boolWhether this parse was a catastrophic failure.
recovered_count: usizeNumber of ParseError::Recovered diagnostics observed.
error_node_count: usizeNumber of NodeKind::Error nodes observed in the AST.
first_unrecovered_error_node: Option<String>Message from the earliest unrecovered ERROR node, if any.
class: RecoverySalvageClassCoarse classification used by corpus closeout reports.
Implementations§
Source§impl RecoverySalvageProfile
impl RecoverySalvageProfile
Sourcepub fn from_parse(
ast: &Node,
diagnostics: &[ParseError],
catastrophic: bool,
) -> Self
pub fn from_parse( ast: &Node, diagnostics: &[ParseError], catastrophic: bool, ) -> Self
Build a recovery/salvage profile for one parsed file.
Trait Implementations§
Source§impl Clone for RecoverySalvageProfile
impl Clone for RecoverySalvageProfile
Source§fn clone(&self) -> RecoverySalvageProfile
fn clone(&self) -> RecoverySalvageProfile
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 RecoverySalvageProfile
impl Debug for RecoverySalvageProfile
Source§impl PartialEq for RecoverySalvageProfile
impl PartialEq for RecoverySalvageProfile
impl Eq for RecoverySalvageProfile
impl StructuralPartialEq for RecoverySalvageProfile
Auto Trait Implementations§
impl Freeze for RecoverySalvageProfile
impl RefUnwindSafe for RecoverySalvageProfile
impl Send for RecoverySalvageProfile
impl Sync for RecoverySalvageProfile
impl Unpin for RecoverySalvageProfile
impl UnsafeUnpin for RecoverySalvageProfile
impl UnwindSafe for RecoverySalvageProfile
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