pub enum NaturalKey {
Blank,
Empty,
Bool(bool),
HugeNegative(BigDecimal),
Number(OrderedF64),
HugePositive(BigDecimal),
Date(Dt),
Text(Vec<Vec<NaturalSegment>>),
Lexical(String),
Unknown(String),
}Variants§
Blank
Empty
Bool(bool)
HugeNegative(BigDecimal)
Number(OrderedF64)
HugePositive(BigDecimal)
Date(Dt)
Text(Vec<Vec<NaturalSegment>>)
Lexical(String)
Unknown(String)
Trait Implementations§
Source§impl Clone for NaturalKey
impl Clone for NaturalKey
Source§fn clone(&self) -> NaturalKey
fn clone(&self) -> NaturalKey
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 NaturalKey
impl Debug for NaturalKey
impl Eq for NaturalKey
Source§impl Ord for NaturalKey
impl Ord for NaturalKey
Source§fn cmp(&self, other: &NaturalKey) -> Ordering
fn cmp(&self, other: &NaturalKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NaturalKey
impl PartialEq for NaturalKey
Source§fn eq(&self, other: &NaturalKey) -> bool
fn eq(&self, other: &NaturalKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NaturalKey
impl PartialOrd for NaturalKey
impl StructuralPartialEq for NaturalKey
Auto Trait Implementations§
impl Freeze for NaturalKey
impl RefUnwindSafe for NaturalKey
impl Send for NaturalKey
impl Sync for NaturalKey
impl Unpin for NaturalKey
impl UnsafeUnpin for NaturalKey
impl UnwindSafe for NaturalKey
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> Comparable<K> for Q
impl<Q, K> Comparable<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.