pub struct RegisterAllocator { /* private fields */ }Expand description
Sequential register allocator for the VDBE register file.
Registers are numbered starting at 1 (register 0 is reserved/unused), matching C SQLite convention.
Implementations§
Source§impl RegisterAllocator
impl RegisterAllocator
Sourcepub fn alloc_regs(&mut self, n: i32) -> i32
pub fn alloc_regs(&mut self, n: i32) -> i32
Allocate a contiguous block of n persistent registers.
Returns the first register number. The block spans [result, result+n).
Sourcepub fn alloc_temp(&mut self) -> i32
pub fn alloc_temp(&mut self) -> i32
Allocate a temporary register (reuses from pool if available).
Trait Implementations§
Source§impl Debug for RegisterAllocator
impl Debug for RegisterAllocator
Auto Trait Implementations§
impl Freeze for RegisterAllocator
impl RefUnwindSafe for RegisterAllocator
impl Send for RegisterAllocator
impl Sync for RegisterAllocator
impl Unpin for RegisterAllocator
impl UnsafeUnpin for RegisterAllocator
impl UnwindSafe for RegisterAllocator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).