pub struct Options {
pub source_type: SourceType,
pub limits: Limits,
}Expand description
What to parse and how much it may cost.
Fields§
§source_type: SourceTypeA module is strict, may await at the top, and has import and
export declarations there.
limits: Limitsmax_depth is how deep the tree may nest, DEFAULT_MAX_DEPTH
without one; max_steps bounds the tokens read; max_input the
bytes.
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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