Struct enum_ptr::ShiftUsize
source · pub struct ShiftUsize<const N: usize>(_);Expand description
usize that shifts left by N bits.
Implementations§
Trait Implementations§
source§impl<const N: usize> Clone for ShiftUsize<N>
impl<const N: usize> Clone for ShiftUsize<N>
source§fn clone(&self) -> ShiftUsize<N>
fn clone(&self) -> ShiftUsize<N>
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<const N: usize> Debug for ShiftUsize<N>
impl<const N: usize> Debug for ShiftUsize<N>
source§impl<const N: usize> Default for ShiftUsize<N>
impl<const N: usize> Default for ShiftUsize<N>
source§fn default() -> ShiftUsize<N>
fn default() -> ShiftUsize<N>
Returns the “default value” for a type. Read more
source§impl<const N: usize> Hash for ShiftUsize<N>
impl<const N: usize> Hash for ShiftUsize<N>
source§impl<const N: usize> Ord for ShiftUsize<N>
impl<const N: usize> Ord for ShiftUsize<N>
source§fn cmp(&self, other: &ShiftUsize<N>) -> Ordering
fn cmp(&self, other: &ShiftUsize<N>) -> 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<const N: usize> PartialEq<ShiftUsize<N>> for ShiftUsize<N>
impl<const N: usize> PartialEq<ShiftUsize<N>> for ShiftUsize<N>
source§fn eq(&self, other: &ShiftUsize<N>) -> bool
fn eq(&self, other: &ShiftUsize<N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<const N: usize> PartialOrd<ShiftUsize<N>> for ShiftUsize<N>
impl<const N: usize> PartialOrd<ShiftUsize<N>> for ShiftUsize<N>
source§fn partial_cmp(&self, other: &ShiftUsize<N>) -> Option<Ordering>
fn partial_cmp(&self, other: &ShiftUsize<N>) -> 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 moreimpl<const N: usize> Copy for ShiftUsize<N>
impl<const N: usize> Eq for ShiftUsize<N>
impl<const N: usize> StructuralEq for ShiftUsize<N>
impl<const N: usize> StructuralPartialEq for ShiftUsize<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for ShiftUsize<N>
impl<const N: usize> Send for ShiftUsize<N>
impl<const N: usize> Sync for ShiftUsize<N>
impl<const N: usize> Unpin for ShiftUsize<N>
impl<const N: usize> UnwindSafe for ShiftUsize<N>
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