Struct elastic_types::number::Float [] [src]

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

Number type with a given mapping.

Methods

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

[src]

Creates a new number with the given mapping.

[src]

Change the mapping of this number.

Methods from Deref<Target = f32>

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns the "default value" for a type. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

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

[src]

Performs the conversion.

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Immutably borrows from an owned value. Read more

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

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

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

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