[−][src]Struct elastic_types::number::Integer
Number type with a given mapping.
Methods
impl<TMapping> Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
pub fn new<I: Into<i32>>(num: I) -> Integer<TMapping>
[src]
Creates a new number with the given mapping.
pub fn remap<TNewMapping>(number: Integer<TMapping>) -> Integer<TNewMapping> where
TNewMapping: IntegerMapping,
[src]
TNewMapping: IntegerMapping,
Change the mapping of this number.
Trait Implementations
impl<TMapping> IntegerFieldType<TMapping> for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
impl<TMapping: PartialEq> PartialEq<Integer<TMapping>> for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
fn eq(&self, other: &Integer<TMapping>) -> bool
[src]
fn ne(&self, other: &Integer<TMapping>) -> bool
[src]
impl<M> PartialEq<i32> for Integer<M> where
M: IntegerMapping,
[src]
M: IntegerMapping,
impl<M> PartialEq<Integer<M>> for i32 where
M: IntegerMapping,
[src]
M: IntegerMapping,
impl<TMapping: Clone> Clone for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
fn clone(&self) -> Integer<TMapping>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<M> From<i32> for Integer<M> where
M: IntegerMapping,
[src]
M: IntegerMapping,
impl<TMapping: Default> Default for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
impl<TMapping: Debug> Debug for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
impl<M> Deref for Integer<M> where
M: IntegerMapping,
[src]
M: IntegerMapping,
impl<M> Borrow<i32> for Integer<M> where
M: IntegerMapping,
[src]
M: IntegerMapping,
impl<TMapping> Serialize for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
impl<'de, TMapping> Deserialize<'de> for Integer<TMapping> where
TMapping: IntegerMapping,
[src]
TMapping: IntegerMapping,
fn deserialize<D>(deserializer: D) -> Result<Integer<TMapping>, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl<TMapping> Send for Integer<TMapping> where
TMapping: Send,
TMapping: Send,
impl<TMapping> Sync for Integer<TMapping> where
TMapping: Sync,
TMapping: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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
🔬 This is a nightly-only experimental API. (
try_from
)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>,