pub struct LearnedIndexStats {
pub num_keys: usize,
pub max_error: usize,
pub num_corrections: usize,
pub slope: f64,
pub intercept: f64,
pub correction_ratio: f64,
}Expand description
Statistics about the learned index
Fields§
§num_keys: usizeNumber of keys in the index
max_error: usizeMaximum prediction error
num_corrections: usizeNumber of keys with corrections stored
slope: f64Linear model slope
intercept: f64Linear model intercept
correction_ratio: f64Ratio of keys that need corrections
Trait Implementations§
Source§impl Clone for LearnedIndexStats
impl Clone for LearnedIndexStats
Source§fn clone(&self) -> LearnedIndexStats
fn clone(&self) -> LearnedIndexStats
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 moreAuto Trait Implementations§
impl Freeze for LearnedIndexStats
impl RefUnwindSafe for LearnedIndexStats
impl Send for LearnedIndexStats
impl Sync for LearnedIndexStats
impl Unpin for LearnedIndexStats
impl UnwindSafe for LearnedIndexStats
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more