pub struct Evidence {
pub cells: usize,
pub nulls: usize,
pub booleans: usize,
pub integers: usize,
pub floats: usize,
pub dates: usize,
pub timestamps: usize,
}Expand description
How many of a column’s cells parsed as each type. A cell counts for
every type it parses as: 7 is an integer and a float, a date is also a
timestamp.
Fields§
§cells: usizeEvery cell.
nulls: usizeNull tokens.
booleans: usizeBooleans.
integers: usizeIntegers.
floats: usizeNumbers (integers included).
dates: usizeDates.
timestamps: usizeTimestamps (dates included).
Implementations§
Source§impl Evidence
impl Evidence
Sourcepub fn parsed(&self, data_type: InferredType) -> usize
pub fn parsed(&self, data_type: InferredType) -> usize
How many non-null cells parse as data_type.
Sourcepub fn best(&self) -> InferredType
pub fn best(&self) -> InferredType
The narrowest type every non-null cell parses as.
Sourcepub fn closest(&self) -> Option<(InferredType, usize)>
pub fn closest(&self) -> Option<(InferredType, usize)>
The typed reading most cells support, for a text column: (type, count), or None when no cell parses as anything.
Trait Implementations§
impl Copy for Evidence
impl Eq for Evidence
impl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.