pub struct TableStats {
pub name: String,
pub n_pages: u64,
pub n_rows: u64,
pub source: StatsSource,
}Expand description
Statistics about a table, used for cost estimation.
Fields§
§name: StringTable name.
n_pages: u64Number of B-tree pages occupied by the table.
n_rows: u64Estimated number of rows (from ANALYZE or heuristic).
source: StatsSourceSource of these statistics.
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 (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 TableStats
impl Debug for TableStats
impl Eq for TableStats
Source§impl From<&TableStats> for TableStatsSummary
impl From<&TableStats> for TableStatsSummary
Source§fn from(ts: &TableStats) -> Self
fn from(ts: &TableStats) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TableStats
impl PartialEq for TableStats
Source§fn eq(&self, other: &TableStats) -> bool
fn eq(&self, other: &TableStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableStats
Auto Trait Implementations§
impl Freeze for TableStats
impl RefUnwindSafe for TableStats
impl Send for TableStats
impl Sync for TableStats
impl Unpin for TableStats
impl UnsafeUnpin 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
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.