Enum elasticsearch_dsl::search::queries::params::DecayFunction
source · pub enum DecayFunction {
Linear,
Exp,
Gauss,
}
Expand description
Variants§
Trait Implementations§
source§impl Clone for DecayFunction
impl Clone for DecayFunction
source§fn clone(&self) -> DecayFunction
fn clone(&self) -> DecayFunction
Returns a copy of the value. Read more
1.0.0 · 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 DecayFunction
impl Debug for DecayFunction
source§impl Ord for DecayFunction
impl Ord for DecayFunction
source§fn cmp(&self, other: &DecayFunction) -> Ordering
fn cmp(&self, other: &DecayFunction) -> Ordering
1.21.0 · 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 DecayFunction
impl PartialEq for DecayFunction
source§fn eq(&self, other: &DecayFunction) -> bool
fn eq(&self, other: &DecayFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DecayFunction
impl PartialOrd for DecayFunction
source§fn partial_cmp(&self, other: &DecayFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &DecayFunction) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl 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§
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