pub struct StatsCache { /* private fields */ }Implementations§
Source§impl StatsCache
impl StatsCache
pub fn new() -> Self
pub fn new_with_capacity( max_table_entries: usize, max_column_entries: usize, ) -> Self
pub fn set_capacity( &mut self, max_table_entries: usize, max_column_entries: usize, )
pub fn is_empty(&self) -> bool
pub fn insert_table_stats( &mut self, table: impl Into<String>, stats: TableStats, )
pub fn table_stats(&self, table: &str) -> Option<&TableStats>
pub fn insert_column_stats( &mut self, table: impl Into<String>, column: impl Into<String>, stats: ColumnStats, )
pub fn column_stats(&self, table: &str, column: &str) -> Option<&ColumnStats>
Trait Implementations§
Source§impl Clone for StatsCache
impl Clone for StatsCache
Source§fn clone(&self) -> StatsCache
fn clone(&self) -> StatsCache
Returns a duplicate of the value. Read more
1.0.0 · 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 StatsCache
impl Debug for StatsCache
Auto Trait Implementations§
impl !Freeze for StatsCache
impl !RefUnwindSafe for StatsCache
impl Send for StatsCache
impl !Sync for StatsCache
impl Unpin for StatsCache
impl UnwindSafe for StatsCache
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