pub struct CrackingHintStore { /* private fields */ }Expand description
Minimal adaptive hint cache keyed by table name.
The planner records the last chosen index for each table and can reuse it as a soft preference on subsequent planning passes.
Implementations§
Source§impl CrackingHintStore
impl CrackingHintStore
pub fn preferred_index(&self, table_name: &str) -> Option<&str>
pub fn record_access_path(&mut self, access_path: &AccessPath)
Trait Implementations§
Source§impl Clone for CrackingHintStore
impl Clone for CrackingHintStore
Source§fn clone(&self) -> CrackingHintStore
fn clone(&self) -> CrackingHintStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrackingHintStore
impl Debug for CrackingHintStore
Source§impl Default for CrackingHintStore
impl Default for CrackingHintStore
Source§fn default() -> CrackingHintStore
fn default() -> CrackingHintStore
Returns the “default value” for a type. Read more
impl Eq for CrackingHintStore
Source§impl PartialEq for CrackingHintStore
impl PartialEq for CrackingHintStore
Source§fn eq(&self, other: &CrackingHintStore) -> bool
fn eq(&self, other: &CrackingHintStore) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrackingHintStore
Auto Trait Implementations§
impl Freeze for CrackingHintStore
impl RefUnwindSafe for CrackingHintStore
impl Send for CrackingHintStore
impl Sync for CrackingHintStore
impl Unpin for CrackingHintStore
impl UnsafeUnpin for CrackingHintStore
impl UnwindSafe for CrackingHintStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.