Struct elastic::types::number::prelude::Byte
[−]
[src]
pub struct Byte<TMapping> where
TMapping: ByteMapping, { /* fields omitted */ }
Number type with a given mapping.
Methods
impl<TMapping> Byte<TMapping> where
TMapping: ByteMapping,
[src]
TMapping: ByteMapping,
pub fn new<I>(num: I) -> Byte<TMapping> where
I: Into<i8>,
[src]
I: Into<i8>,
Creates a new number with the given mapping.
pub fn remap<TNewMapping>(number: Byte<TMapping>) -> Byte<TNewMapping> where
TNewMapping: ByteMapping,
[src]
TNewMapping: ByteMapping,
Change the mapping of this number.
Methods from Deref<Target = i8>
Trait Implementations
impl<TMapping> PartialEq<Byte<TMapping>> for Byte<TMapping> where
TMapping: PartialEq<TMapping> + ByteMapping,
[src]
TMapping: PartialEq<TMapping> + ByteMapping,
fn eq(&self, __arg_0: &Byte<TMapping>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Byte<TMapping>) -> bool
[src]
This method tests for !=
.
impl<M> PartialEq<Byte<M>> for i8 where
M: ByteMapping,
[src]
M: ByteMapping,
fn eq(&self, other: &Byte<M>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Byte<M>) -> bool
[src]
This method tests for !=
.
impl<M> PartialEq<i8> for Byte<M> where
M: ByteMapping,
[src]
M: ByteMapping,
fn eq(&self, other: &i8) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &i8) -> bool
[src]
This method tests for !=
.
impl<TMapping> Clone for Byte<TMapping> where
TMapping: Clone + ByteMapping,
[src]
TMapping: Clone + ByteMapping,
fn clone(&self) -> Byte<TMapping>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<TMapping> Default for Byte<TMapping> where
TMapping: Default + ByteMapping,
[src]
TMapping: Default + ByteMapping,
impl<'de, TMapping> Deserialize<'de> for Byte<TMapping> where
TMapping: ByteMapping,
[src]
TMapping: ByteMapping,
fn deserialize<D>(
deserializer: D
) -> Result<Byte<TMapping>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Byte<TMapping>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<M> Deref for Byte<M> where
M: ByteMapping,
[src]
M: ByteMapping,
type Target = i8
The resulting type after dereferencing.
fn deref(&self) -> &i8
[src]
Dereferences the value.
impl<TMapping> ByteFieldType<TMapping> for Byte<TMapping> where
TMapping: ByteMapping,
[src]
TMapping: ByteMapping,
impl<M> Borrow<i8> for Byte<M> where
M: ByteMapping,
[src]
M: ByteMapping,
impl<TMapping> Serialize for Byte<TMapping> where
TMapping: ByteMapping,
[src]
TMapping: ByteMapping,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<M> From<i8> for Byte<M> where
M: ByteMapping,
[src]
M: ByteMapping,
impl<TMapping> Debug for Byte<TMapping> where
TMapping: Debug + ByteMapping,
[src]
TMapping: Debug + ByteMapping,