pub struct IntegerAliasExample(pub i32);
Tuple Fields§
§0: i32
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl Clone for IntegerAliasExample
impl Clone for IntegerAliasExample
source§fn clone(&self) -> IntegerAliasExample
fn clone(&self) -> IntegerAliasExample
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IntegerAliasExample
impl Debug for IntegerAliasExample
source§impl Default for IntegerAliasExample
impl Default for IntegerAliasExample
source§fn default() -> IntegerAliasExample
fn default() -> IntegerAliasExample
Returns the “default value” for a type. Read more
source§impl Deref for IntegerAliasExample
impl Deref for IntegerAliasExample
source§impl DerefMut for IntegerAliasExample
impl DerefMut for IntegerAliasExample
source§impl<'de> Deserialize<'de> for IntegerAliasExample
impl<'de> Deserialize<'de> for IntegerAliasExample
source§fn deserialize<D>(d: D) -> Result<IntegerAliasExample, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<IntegerAliasExample, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for IntegerAliasExample
impl Display for IntegerAliasExample
source§impl From<i32> for IntegerAliasExample
impl From<i32> for IntegerAliasExample
source§impl FromPlain for IntegerAliasExample
impl FromPlain for IntegerAliasExample
source§impl Hash for IntegerAliasExample
impl Hash for IntegerAliasExample
source§impl Ord for IntegerAliasExample
impl Ord for IntegerAliasExample
source§fn cmp(&self, other: &IntegerAliasExample) -> Ordering
fn cmp(&self, other: &IntegerAliasExample) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for IntegerAliasExample
impl PartialEq for IntegerAliasExample
source§fn eq(&self, other: &IntegerAliasExample) -> bool
fn eq(&self, other: &IntegerAliasExample) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IntegerAliasExample
impl PartialOrd for IntegerAliasExample
source§fn partial_cmp(&self, other: &IntegerAliasExample) -> Option<Ordering>
fn partial_cmp(&self, other: &IntegerAliasExample) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Plain for IntegerAliasExample
impl Plain for IntegerAliasExample
source§impl Serialize for IntegerAliasExample
impl Serialize for IntegerAliasExample
impl Copy for IntegerAliasExample
impl Eq for IntegerAliasExample
impl StructuralPartialEq for IntegerAliasExample
Auto Trait Implementations§
impl Freeze for IntegerAliasExample
impl RefUnwindSafe for IntegerAliasExample
impl Send for IntegerAliasExample
impl Sync for IntegerAliasExample
impl Unpin for IntegerAliasExample
impl UnwindSafe for IntegerAliasExample
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.