[][src]Struct elastic::types::number::prelude::Float

pub struct Float<TMapping> where
    TMapping: FloatMapping
{ /* fields omitted */ }

Number type with a given mapping.

Methods

impl<TMapping> Float<TMapping> where
    TMapping: FloatMapping
[src]

pub fn new<I>(num: I) -> Float<TMapping> where
    I: Into<f32>, 
[src]

Creates a new number with the given mapping.

pub fn remap<TNewMapping>(number: Float<TMapping>) -> Float<TNewMapping> where
    TNewMapping: FloatMapping
[src]

Change the mapping of this number.

Methods from Deref<Target = f32>

Trait Implementations

impl<TMapping> Clone for Float<TMapping> where
    TMapping: Clone + FloatMapping
[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]

impl<M> Borrow<f32> for Float<M> where
    M: FloatMapping
[src]

impl<M> Deref for Float<M> where
    M: FloatMapping
[src]

type Target = f32

The resulting type after dereferencing.

impl<TMapping> Default for Float<TMapping> where
    TMapping: Default + FloatMapping
[src]

impl<M> From<f32> for Float<M> where
    M: FloatMapping
[src]

impl<TMapping> PartialEq<Float<TMapping>> for Float<TMapping> where
    TMapping: PartialEq<TMapping> + FloatMapping
[src]

impl<M> PartialEq<f32> for Float<M> where
    M: FloatMapping
[src]

impl<M> PartialEq<Float<M>> for f32 where
    M: FloatMapping
[src]

impl<TMapping> FloatFieldType<TMapping> for Float<TMapping> where
    TMapping: FloatMapping
[src]

impl<TMapping> Debug for Float<TMapping> where
    TMapping: Debug + FloatMapping
[src]

impl<'de, TMapping> Deserialize<'de> for Float<TMapping> where
    TMapping: FloatMapping
[src]

Auto Trait Implementations

impl<TMapping> Send for Float<TMapping> where
    TMapping: Send

impl<TMapping> Sync for Float<TMapping> where
    TMapping: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err