Struct debris_parser::parser::RecoveryOptions
source · struct RecoveryOptions {
allow_defer: bool,
consume_safety_token: bool,
create_error: bool,
}
Expand description
Options passed to the parsers recover function
Fields§
§allow_defer: bool
Whether the recovery may be deferred, in case a better recovery path is available
consume_safety_token: bool
Whether to consume the first encountered safety token
create_error: bool
Whether to automatically create an unexpected token error
Trait Implementations§
source§impl Clone for RecoveryOptions
impl Clone for RecoveryOptions
source§fn clone(&self) -> RecoveryOptions
fn clone(&self) -> RecoveryOptions
Returns a copy 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 RecoveryOptions
impl Debug for RecoveryOptions
source§impl Default for RecoveryOptions
impl Default for RecoveryOptions
impl Copy for RecoveryOptions
Auto Trait Implementations§
impl RefUnwindSafe for RecoveryOptions
impl Send for RecoveryOptions
impl Sync for RecoveryOptions
impl Unpin for RecoveryOptions
impl UnwindSafe for RecoveryOptions
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