pub enum LexicalClass {
Numeric,
Date,
Boolean,
Text,
}Expand description
Mutually exclusive lexical form of a single non-null value.
The variants partition non-null values — every value belongs to exactly one —
which is what lets the share held by the largest class describe a column
whose inferred DataType says nothing about the mixture inside it. A
String column of names and a String column that is 60% numbers are the
same type; they are not the same class distribution.
Variants§
Numeric
Whole numbers and fractions alike: ["1.5", "2"] is one numeric column,
not a two-class mixture.
Date
Any date or datetime form the profiler recognizes.
Boolean
Strict boolean tokens.
Text
Everything else.
Trait Implementations§
Source§impl Clone for LexicalClass
impl Clone for LexicalClass
Source§fn clone(&self) -> LexicalClass
fn clone(&self) -> LexicalClass
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 moreimpl Copy for LexicalClass
Source§impl Debug for LexicalClass
impl Debug for LexicalClass
Source§impl<'de> Deserialize<'de> for LexicalClass
impl<'de> Deserialize<'de> for LexicalClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LexicalClass
impl Display for LexicalClass
impl Eq for LexicalClass
Source§impl Hash for LexicalClass
impl Hash for LexicalClass
Source§impl JsonSchema for LexicalClass
impl JsonSchema for LexicalClass
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LexicalClass
impl PartialEq for LexicalClass
Source§impl Serialize for LexicalClass
impl Serialize for LexicalClass
impl StructuralPartialEq for LexicalClass
Auto Trait Implementations§
impl Freeze for LexicalClass
impl RefUnwindSafe for LexicalClass
impl Send for LexicalClass
impl Sync for LexicalClass
impl Unpin for LexicalClass
impl UnsafeUnpin for LexicalClass
impl UnwindSafe for LexicalClass
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.