pub enum IndexKeyFragment {
Field(FieldSourceKey),
Lower(FieldSourceKey),
Upper(FieldSourceKey),
Trim(FieldSourceKey),
LowerTrim(FieldSourceKey),
Date(FieldSourceKey),
Year(FieldSourceKey),
Month(FieldSourceKey),
Day(FieldSourceKey),
}Expand description
One ordered index key component.
Variants§
Field(FieldSourceKey)
Direct field key.
Lower(FieldSourceKey)
Lower-cased text expression.
Upper(FieldSourceKey)
Upper-cased text expression.
Trim(FieldSourceKey)
Trimmed text expression.
LowerTrim(FieldSourceKey)
Lower-cased and trimmed text expression.
Date(FieldSourceKey)
Date extraction expression.
Year(FieldSourceKey)
Year extraction expression.
Month(FieldSourceKey)
Month extraction expression.
Day(FieldSourceKey)
Day extraction expression.
Implementations§
Source§impl IndexKeyFragment
impl IndexKeyFragment
Sourcepub const fn field(&self) -> &FieldSourceKey
pub const fn field(&self) -> &FieldSourceKey
Borrow the field source key consumed by this component.
Trait Implementations§
Source§impl Clone for IndexKeyFragment
impl Clone for IndexKeyFragment
Source§fn clone(&self) -> IndexKeyFragment
fn clone(&self) -> IndexKeyFragment
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 IndexKeyFragment
impl Debug for IndexKeyFragment
impl Eq for IndexKeyFragment
Source§impl PartialEq for IndexKeyFragment
impl PartialEq for IndexKeyFragment
impl StructuralPartialEq for IndexKeyFragment
Auto Trait Implementations§
impl Freeze for IndexKeyFragment
impl RefUnwindSafe for IndexKeyFragment
impl Send for IndexKeyFragment
impl Sync for IndexKeyFragment
impl Unpin for IndexKeyFragment
impl UnsafeUnpin for IndexKeyFragment
impl UnwindSafe for IndexKeyFragment
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> 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.