Enum elasticsearch_dsl::search::queries::params::DecayFunction
source · [−]pub enum DecayFunction {
Linear,
Exp,
Gauss,
}
Expand description
Variants
Linear
Linear decay
Exp
Exponential decay
Gauss
Gauss decay
Trait Implementations
sourceimpl Clone for DecayFunction
impl Clone for DecayFunction
sourcefn clone(&self) -> DecayFunction
fn clone(&self) -> DecayFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecayFunction
impl Debug for DecayFunction
sourceimpl Ord for DecayFunction
impl Ord for DecayFunction
sourceimpl PartialEq<DecayFunction> for DecayFunction
impl PartialEq<DecayFunction> for DecayFunction
sourceimpl PartialOrd<DecayFunction> for DecayFunction
impl PartialOrd<DecayFunction> for DecayFunction
sourcefn partial_cmp(&self, other: &DecayFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &DecayFunction) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for DecayFunction
impl Serialize for DecayFunction
impl Copy for DecayFunction
impl Eq for DecayFunction
impl StructuralEq for DecayFunction
impl StructuralPartialEq for DecayFunction
Auto Trait Implementations
impl RefUnwindSafe for DecayFunction
impl Send for DecayFunction
impl Sync for DecayFunction
impl Unpin for DecayFunction
impl UnwindSafe for DecayFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more