pub struct StatementParseScratch { /* private fields */ }Expand description
Caller-owned statement parse scratch.
The parser still allocates AST nodes normally, but repeated statement-cache
misses can now keep token/error vectors hot and reset them wholesale at the
statement boundary instead of rebuilding fresh Vecs on every parse.
Implementations§
Source§impl StatementParseScratch
impl StatementParseScratch
pub fn token_capacity(&self) -> usize
pub fn error_capacity(&self) -> usize
pub fn retained_bytes(&self) -> usize
Trait Implementations§
Source§impl Debug for StatementParseScratch
impl Debug for StatementParseScratch
Source§impl Default for StatementParseScratch
impl Default for StatementParseScratch
Source§fn default() -> StatementParseScratch
fn default() -> StatementParseScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatementParseScratch
impl RefUnwindSafe for StatementParseScratch
impl Send for StatementParseScratch
impl Sync for StatementParseScratch
impl Unpin for StatementParseScratch
impl UnsafeUnpin for StatementParseScratch
impl UnwindSafe for StatementParseScratch
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