pub struct ContextBudget { /* private fields */ }Expand description
The running context budget for a parser that copies a shared string (a key path, a section name, a comment)
into many units: charge every copy before it is made, so a hostile file is refused before the memory is
taken. check_document applies the same cap to the finished document as the safety net.
Implementations§
Source§impl ContextBudget
impl ContextBudget
Trait Implementations§
Source§impl Clone for ContextBudget
impl Clone for ContextBudget
impl Copy for ContextBudget
Source§impl Debug for ContextBudget
impl Debug for ContextBudget
Auto Trait Implementations§
impl Forget for ContextBudget
impl Freeze for ContextBudget
impl Move for ContextBudget
impl RefUnwindSafe for ContextBudget
impl Send for ContextBudget
impl Sync for ContextBudget
impl Unpin for ContextBudget
impl UnsafeUnpin for ContextBudget
impl UnwindSafe for ContextBudget
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