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