[][src]Struct elastic_types::number::prelude::Byte

pub struct Byte<TMapping> where
    TMapping: ByteMapping
{ /* fields omitted */ }

Number type with a given mapping.

Methods

impl<TMapping> Byte<TMapping> where
    TMapping: ByteMapping
[src]

pub fn new<I: Into<i8>>(num: I) -> Byte<TMapping>[src]

Creates a new number with the given mapping.

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

Change the mapping of this number.

Trait Implementations

impl<TMapping> ByteFieldType<TMapping> for Byte<TMapping> where
    TMapping: ByteMapping
[src]

impl<TMapping: Clone> Clone for Byte<TMapping> where
    TMapping: ByteMapping
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<TMapping: PartialEq> PartialEq<Byte<TMapping>> for Byte<TMapping> where
    TMapping: ByteMapping
[src]

impl<M> PartialEq<i8> for Byte<M> where
    M: ByteMapping
[src]

impl<M> PartialEq<Byte<M>> for i8 where
    M: ByteMapping
[src]

impl<M> From<i8> for Byte<M> where
    M: ByteMapping
[src]

impl<TMapping: Default> Default for Byte<TMapping> where
    TMapping: ByteMapping
[src]

impl<TMapping: Debug> Debug for Byte<TMapping> where
    TMapping: ByteMapping
[src]

impl<M> Deref for Byte<M> where
    M: ByteMapping
[src]

type Target = i8

The resulting type after dereferencing.

impl<M> Borrow<i8> for Byte<M> where
    M: ByteMapping
[src]

impl<TMapping> Serialize for Byte<TMapping> where
    TMapping: ByteMapping
[src]

impl<'de, TMapping> Deserialize<'de> for Byte<TMapping> where
    TMapping: ByteMapping
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for T[src]

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

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>,