pub struct ParseFlagsExt {
pub allow_sorry: bool,
pub unicode_ops: bool,
pub error_recovery: bool,
pub warnings_as_errors: bool,
}Expand description
A parse flag set for controlling parser behaviour.
Fields§
§allow_sorry: boolWhether to allow sorry in proofs
unicode_ops: boolWhether to enable unicode operators
error_recovery: boolWhether to recover from errors
warnings_as_errors: boolWhether to emit warnings as errors
Implementations§
Source§impl ParseFlagsExt
impl ParseFlagsExt
Sourcepub fn default_flags() -> Self
pub fn default_flags() -> Self
Create a default set of flags.
Sourcepub fn with_sorry(self) -> Self
pub fn with_sorry(self) -> Self
Enable sorry.
Trait Implementations§
Source§impl Clone for ParseFlagsExt
impl Clone for ParseFlagsExt
Source§fn clone(&self) -> ParseFlagsExt
fn clone(&self) -> ParseFlagsExt
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 ParseFlagsExt
impl Debug for ParseFlagsExt
Source§impl Default for ParseFlagsExt
impl Default for ParseFlagsExt
Source§fn default() -> ParseFlagsExt
fn default() -> ParseFlagsExt
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseFlagsExt
impl RefUnwindSafe for ParseFlagsExt
impl Send for ParseFlagsExt
impl Sync for ParseFlagsExt
impl Unpin for ParseFlagsExt
impl UnsafeUnpin for ParseFlagsExt
impl UnwindSafe for ParseFlagsExt
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