#[non_exhaustive]pub enum BindPolicy {
Adaptive,
Eager,
Lazy,
}Expand description
How SchemaProgram::bind chooses a regular-schema bind mode; Naive stays low-level-only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Adaptive
Packed table when affordable, else lazy trie-backed rows. The default.
Eager
Always the packed table: fastest per-mask query, higher bind cost.
Lazy
Always lazy trie-backed rows: cheap bind, each row cached on first query.
Trait Implementations§
Source§impl Clone for BindPolicy
impl Clone for BindPolicy
impl Copy for BindPolicy
Source§impl Debug for BindPolicy
impl Debug for BindPolicy
Source§impl Default for BindPolicy
impl Default for BindPolicy
impl Eq for BindPolicy
Source§impl PartialEq for BindPolicy
impl PartialEq for BindPolicy
impl StructuralPartialEq for BindPolicy
Auto Trait Implementations§
impl Freeze for BindPolicy
impl RefUnwindSafe for BindPolicy
impl Send for BindPolicy
impl Sync for BindPolicy
impl Unpin for BindPolicy
impl UnsafeUnpin for BindPolicy
impl UnwindSafe for BindPolicy
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