#[non_exhaustive]pub enum NumberSize {
S8,
S16,
S32,
S64,
}
Expand description
The literal size of a number.
If this comes from a u8
or i8
suffix it would be S8
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
S8
A 8-bit sized integer.
S16
A 16-bit sized integer.
S32
A 32-bit sized integer.
S64
A 64-bit sized integer.
Trait Implementations§
Source§impl Clone for NumberSize
impl Clone for NumberSize
Source§fn clone(&self) -> NumberSize
fn clone(&self) -> NumberSize
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 NumberSize
impl Debug for NumberSize
Source§impl Hash for NumberSize
impl Hash for NumberSize
Source§impl Ord for NumberSize
impl Ord for NumberSize
Source§fn cmp(&self, other: &NumberSize) -> Ordering
fn cmp(&self, other: &NumberSize) -> 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 NumberSize
impl PartialEq for NumberSize
Source§impl PartialOrd for NumberSize
impl PartialOrd for NumberSize
Source§impl TryClone for NumberSize
impl TryClone for NumberSize
impl Copy for NumberSize
impl Eq for NumberSize
impl StructuralPartialEq for NumberSize
Auto Trait Implementations§
impl Freeze for NumberSize
impl RefUnwindSafe for NumberSize
impl Send for NumberSize
impl Sync for NumberSize
impl Unpin for NumberSize
impl UnwindSafe for NumberSize
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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§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.