pub struct TableStats {
pub row_count: usize,
pub is_sorted: bool,
pub indexes: Vec<IndexInfo>,
}Expand description
Statistics about a table for query optimization.
Fields§
§row_count: usizeNumber of rows in the table.
is_sorted: boolWhether the table is sorted by primary key.
indexes: Vec<IndexInfo>Available indexes on this table.
Trait Implementations§
Source§impl Clone for TableStats
impl Clone for TableStats
Source§fn clone(&self) -> TableStats
fn clone(&self) -> TableStats
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 TableStats
impl Debug for TableStats
Source§impl Default for TableStats
impl Default for TableStats
Source§fn default() -> TableStats
fn default() -> TableStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableStats
impl RefUnwindSafe for TableStats
impl Send for TableStats
impl Sync for TableStats
impl Unpin for TableStats
impl UnwindSafe for TableStats
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