pub struct CategoricalProfile {
pub nrows: usize,
pub cardinality: usize,
pub missing: usize,
pub bytes_used: usize,
pub avg_byte_len: usize,
pub max_byte_len: usize,
pub code_width_bytes: usize,
pub unique_ratio_thousandths: u64,
}Expand description
Internal stats computed by CategoricalColumn::profile(). Integer
fields only — no float math, deterministic.
Fields§
§nrows: usize§cardinality: usize§missing: usize§bytes_used: usize§avg_byte_len: usize§max_byte_len: usize§code_width_bytes: usize§unique_ratio_thousandths: u64(cardinality / nrows) * 1000 rounded toward zero. Reported in
thousandths to keep the profile integer-only.
Trait Implementations§
Source§impl Clone for CategoricalProfile
impl Clone for CategoricalProfile
Source§fn clone(&self) -> CategoricalProfile
fn clone(&self) -> CategoricalProfile
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 CategoricalProfile
impl Debug for CategoricalProfile
Source§impl PartialEq for CategoricalProfile
impl PartialEq for CategoricalProfile
Source§fn eq(&self, other: &CategoricalProfile) -> bool
fn eq(&self, other: &CategoricalProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CategoricalProfile
impl Eq for CategoricalProfile
impl StructuralPartialEq for CategoricalProfile
Auto Trait Implementations§
impl Freeze for CategoricalProfile
impl RefUnwindSafe for CategoricalProfile
impl Send for CategoricalProfile
impl Sync for CategoricalProfile
impl Unpin for CategoricalProfile
impl UnsafeUnpin for CategoricalProfile
impl UnwindSafe for CategoricalProfile
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