pub struct ParseConfig {
pub max_depth: usize,
pub max_errors: usize,
pub recover_from_errors: bool,
pub strict_mode: bool,
pub track_whitespace: bool,
pub allow_holes: bool,
}Expand description
Configuration for a single parse run.
Fields§
§max_depth: usize§max_errors: usize§recover_from_errors: bool§strict_mode: bool§track_whitespace: bool§allow_holes: boolImplementations§
Source§impl ParseConfig
impl ParseConfig
Trait Implementations§
Source§impl Clone for ParseConfig
impl Clone for ParseConfig
Source§fn clone(&self) -> ParseConfig
fn clone(&self) -> ParseConfig
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 ParseConfig
impl Debug for ParseConfig
Auto Trait Implementations§
impl Freeze for ParseConfig
impl RefUnwindSafe for ParseConfig
impl Send for ParseConfig
impl Sync for ParseConfig
impl Unpin for ParseConfig
impl UnsafeUnpin for ParseConfig
impl UnwindSafe for ParseConfig
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