[−][src]Struct elastic::types::number::prelude::Float
Number type with a given mapping.
Methods
impl<TMapping> Float<TMapping> where
TMapping: FloatMapping,
[src]
TMapping: FloatMapping,
pub fn new<I>(num: I) -> Float<TMapping> where
I: Into<f32>,
[src]
I: Into<f32>,
Creates a new number with the given mapping.
pub fn remap<TNewMapping>(number: Float<TMapping>) -> Float<TNewMapping> where
TNewMapping: FloatMapping,
[src]
TNewMapping: FloatMapping,
Change the mapping of this number.
Methods from Deref<Target = f32>
Trait Implementations
impl<TMapping> Clone for Float<TMapping> where
TMapping: Clone + FloatMapping,
[src]
TMapping: Clone + FloatMapping,
fn clone(&self) -> Float<TMapping>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<TMapping> Serialize for Float<TMapping> where
TMapping: FloatMapping,
[src]
TMapping: FloatMapping,
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,
impl<M> Borrow<f32> for Float<M> where
M: FloatMapping,
[src]
M: FloatMapping,
impl<M> Deref for Float<M> where
M: FloatMapping,
[src]
M: FloatMapping,
impl<TMapping> Default for Float<TMapping> where
TMapping: Default + FloatMapping,
[src]
TMapping: Default + FloatMapping,
impl<M> From<f32> for Float<M> where
M: FloatMapping,
[src]
M: FloatMapping,
impl<TMapping> PartialEq<Float<TMapping>> for Float<TMapping> where
TMapping: PartialEq<TMapping> + FloatMapping,
[src]
TMapping: PartialEq<TMapping> + FloatMapping,
fn eq(&self, other: &Float<TMapping>) -> bool
[src]
fn ne(&self, other: &Float<TMapping>) -> bool
[src]
impl<M> PartialEq<f32> for Float<M> where
M: FloatMapping,
[src]
M: FloatMapping,
impl<M> PartialEq<Float<M>> for f32 where
M: FloatMapping,
[src]
M: FloatMapping,
impl<TMapping> FloatFieldType<TMapping> for Float<TMapping> where
TMapping: FloatMapping,
[src]
TMapping: FloatMapping,
impl<TMapping> Debug for Float<TMapping> where
TMapping: Debug + FloatMapping,
[src]
TMapping: Debug + FloatMapping,
impl<'de, TMapping> Deserialize<'de> for Float<TMapping> where
TMapping: FloatMapping,
[src]
TMapping: FloatMapping,
fn deserialize<D>(
deserializer: D
) -> Result<Float<TMapping>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Float<TMapping>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Auto Trait Implementations
impl<TMapping> Send for Float<TMapping> where
TMapping: Send,
TMapping: Send,
impl<TMapping> Sync for Float<TMapping> where
TMapping: Sync,
TMapping: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,