pub struct ParseOptions {
pub max_input_size: usize,
pub max_errors: usize,
}Expand description
Options that control parser behavior.
Fields§
§max_input_size: usizeMaximum input size in bytes. Inputs exceeding this limit are rejected
with a ParseError before lexing begins. Set to 0 to disable.
Default: 10 MB (10 × 1024 × 1024 bytes).
max_errors: usizeMaximum number of errors to collect in lenient parsing mode.
Once this limit is reached, additional errors are silently discarded
to prevent unbounded memory growth from highly malformed input.
Set to 0 to disable the limit.
Default: 1000.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
impl Debug for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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