#[non_exhaustive]pub enum RecoveryConfidence {
Parsed,
Recovered,
Partial,
Unknown,
}Expand description
Recovery quality for a lowered HIR item.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parsed
Lowered from a normally parsed AST node.
Recovered
Lowered from a parser recovery wrapper with a partial valid tree.
Partial
Lowered from a partially known or placeholder AST shape.
Unknown
Lowering could not classify recovery confidence yet.
Trait Implementations§
Source§impl Clone for RecoveryConfidence
impl Clone for RecoveryConfidence
Source§fn clone(&self) -> RecoveryConfidence
fn clone(&self) -> RecoveryConfidence
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 moreSource§impl Debug for RecoveryConfidence
impl Debug for RecoveryConfidence
Source§impl Hash for RecoveryConfidence
impl Hash for RecoveryConfidence
Source§impl PartialEq for RecoveryConfidence
impl PartialEq for RecoveryConfidence
Source§fn eq(&self, other: &RecoveryConfidence) -> bool
fn eq(&self, other: &RecoveryConfidence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RecoveryConfidence
impl Eq for RecoveryConfidence
impl StructuralPartialEq for RecoveryConfidence
Auto Trait Implementations§
impl Freeze for RecoveryConfidence
impl RefUnwindSafe for RecoveryConfidence
impl Send for RecoveryConfidence
impl Sync for RecoveryConfidence
impl Unpin for RecoveryConfidence
impl UnsafeUnpin for RecoveryConfidence
impl UnwindSafe for RecoveryConfidence
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