pub struct Limits {
pub max_bytes: usize,
pub max_tokens: usize,
pub max_nesting: usize,
pub max_lines: usize,
}Expand description
Resource limits shared by lexing and parsing.
Fields§
§max_bytes: usizeMaximum source bytes.
max_tokens: usizeMaximum emitted tokens (including trivia/layout).
max_nesting: usizeMaximum bracket, f-string, and indentation nesting.
max_lines: usizeMaximum physical lines.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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