#[non_exhaustive]pub enum RecoveryAction {
SkippedUnmatchedCloser,
UnterminatedString,
UnmatchedBracket,
InvalidErrorLiteral,
UnmatchedOpener,
}Expand description
Recovering action taken for a malformed span.
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.
SkippedUnmatchedCloser
Unmatched closer was emitted as a recovery span and scanning continued.
UnterminatedString
Unterminated string was emitted as one recovery span.
UnmatchedBracket
Unmatched opening ‘[’ was emitted as a recovery span.
InvalidErrorLiteral
Invalid # literal was emitted as a recovery span.
UnmatchedOpener
Unmatched opener was recorded at end-of-input.
Trait Implementations§
Source§impl Clone for RecoveryAction
impl Clone for RecoveryAction
Source§fn clone(&self) -> RecoveryAction
fn clone(&self) -> RecoveryAction
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 moreimpl Copy for RecoveryAction
Source§impl Debug for RecoveryAction
impl Debug for RecoveryAction
impl Eq for RecoveryAction
Source§impl Hash for RecoveryAction
impl Hash for RecoveryAction
Source§impl PartialEq for RecoveryAction
impl PartialEq for RecoveryAction
impl StructuralPartialEq for RecoveryAction
Auto Trait Implementations§
impl Freeze for RecoveryAction
impl RefUnwindSafe for RecoveryAction
impl Send for RecoveryAction
impl Sync for RecoveryAction
impl Unpin for RecoveryAction
impl UnsafeUnpin for RecoveryAction
impl UnwindSafe for RecoveryAction
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