Struct elastic::types::prelude::Double
[−]
[src]
pub struct Double<TMapping> where
TMapping: DoubleMapping, { /* fields omitted */ }Number type with a given mapping.
Methods
impl<TMapping> Double<TMapping> where
TMapping: DoubleMapping, [src]
TMapping: DoubleMapping,
pub fn new<I>(num: I) -> Double<TMapping> where
I: Into<f64>, [src]
I: Into<f64>,
Creates a new number with the given mapping.
pub fn remap<TNewMapping>(number: Double<TMapping>) -> Double<TNewMapping> where
TNewMapping: DoubleMapping, [src]
TNewMapping: DoubleMapping,
Change the mapping of this number.
Methods from Deref<Target = f64>
Trait Implementations
impl<M> PartialEq<f64> for Double<M> where
M: DoubleMapping, [src]
M: DoubleMapping,
fn eq(&self, other: &f64) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &f64) -> bool[src]
This method tests for !=.
impl<TMapping> PartialEq<Double<TMapping>> for Double<TMapping> where
TMapping: PartialEq<TMapping> + DoubleMapping, [src]
TMapping: PartialEq<TMapping> + DoubleMapping,
fn eq(&self, __arg_0: &Double<TMapping>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Double<TMapping>) -> bool[src]
This method tests for !=.
impl<M> PartialEq<Double<M>> for f64 where
M: DoubleMapping, [src]
M: DoubleMapping,
fn eq(&self, other: &Double<M>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Double<M>) -> bool[src]
This method tests for !=.
impl<TMapping> Clone for Double<TMapping> where
TMapping: Clone + DoubleMapping, [src]
TMapping: Clone + DoubleMapping,
fn clone(&self) -> Double<TMapping>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<TMapping> Default for Double<TMapping> where
TMapping: Default + DoubleMapping, [src]
TMapping: Default + DoubleMapping,
impl<'de, TMapping> Deserialize<'de> for Double<TMapping> where
TMapping: DoubleMapping, [src]
TMapping: DoubleMapping,
fn deserialize<D>(
deserializer: D
) -> Result<Double<TMapping>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>, [src]
deserializer: D
) -> Result<Double<TMapping>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<M> Deref for Double<M> where
M: DoubleMapping, [src]
M: DoubleMapping,
type Target = f64
The resulting type after dereferencing.
fn deref(&self) -> &f64[src]
Dereferences the value.
impl<TMapping> DoubleFieldType<TMapping> for Double<TMapping> where
TMapping: DoubleMapping, [src]
TMapping: DoubleMapping,
impl<M> Borrow<f64> for Double<M> where
M: DoubleMapping, [src]
M: DoubleMapping,
impl<TMapping> Serialize for Double<TMapping> where
TMapping: DoubleMapping, [src]
TMapping: DoubleMapping,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<M> From<f64> for Double<M> where
M: DoubleMapping, [src]
M: DoubleMapping,
impl<TMapping> Debug for Double<TMapping> where
TMapping: Debug + DoubleMapping, [src]
TMapping: Debug + DoubleMapping,