pub struct ParameterMap {
pub count: u32,
pub names: Vec<(Vec<u8>, u32)>,
pub numbered: u64,
}Expand description
Where a statement’s parameters ended up.
Fields§
§count: u32The highest parameter index the statement used.
names: Vec<(Vec<u8>, u32)>Named parameters and the index each was assigned.
numbered: u64Which of ?1 to ?64 the statement wrote, as bit N - 1.
A bitset because the name of ?N is its own text, and copying that
text into names cost two allocations on every compile of a statement
that binds ?1. Compiling SELECT id FROM t WHERE email = ?1 is the
statement the allocation budget measures. A number above 64 is rare and
goes into names as before.
Implementations§
Trait Implementations§
Source§impl Clone for ParameterMap
impl Clone for ParameterMap
Source§impl Debug for ParameterMap
impl Debug for ParameterMap
Source§impl Default for ParameterMap
impl Default for ParameterMap
impl Eq for ParameterMap
Source§impl PartialEq for ParameterMap
impl PartialEq for ParameterMap
impl StructuralPartialEq for ParameterMap
Auto Trait Implementations§
impl Freeze for ParameterMap
impl RefUnwindSafe for ParameterMap
impl Send for ParameterMap
impl Sync for ParameterMap
impl Unpin for ParameterMap
impl UnsafeUnpin for ParameterMap
impl UnwindSafe for ParameterMap
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