Struct elastic_types::number::Integer [] [src]

pub struct Integer<TMapping> where
    TMapping: IntegerMapping
{ /* fields omitted */ }

Number type with a given mapping.

Methods

impl<TMapping> Integer<TMapping> where
    TMapping: IntegerMapping
[src]

[src]

Creates a new number with the given mapping.

[src]

Change the mapping of this number.

Methods from Deref<Target = i32>

Trait Implementations

impl<TMapping: Debug> Debug for Integer<TMapping> where
    TMapping: IntegerMapping
[src]

[src]

Formats the value using the given formatter. Read more

impl<TMapping: Default> Default for Integer<TMapping> where
    TMapping: IntegerMapping
[src]

[src]

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

impl<TMapping: Clone> Clone for Integer<TMapping> where
    TMapping: IntegerMapping
[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 Integer<TMapping> where
    TMapping: IntegerMapping
[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> IntegerFieldType<TMapping> for Integer<TMapping> where
    TMapping: IntegerMapping
[src]

impl<M> From<i32> for Integer<M> where
    M: IntegerMapping
[src]

[src]

Performs the conversion.

impl<M> PartialEq<i32> for Integer<M> where
    M: IntegerMapping
[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<Integer<M>> for i32 where
    M: IntegerMapping
[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 Integer<M> where
    M: IntegerMapping
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<M> Borrow<i32> for Integer<M> where
    M: IntegerMapping
[src]

[src]

Immutably borrows from an owned value. Read more

impl<TMapping> Serialize for Integer<TMapping> where
    TMapping: IntegerMapping
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de, TMapping> Deserialize<'de> for Integer<TMapping> where
    TMapping: IntegerMapping
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

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

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