pub struct ShiftAmount(/* private fields */);Expand description
Represents an amount of bits to shift an ApInt.
The purpose of this type is to create a generic abstraction
over input types that may act as a ShiftAmount for shift
operations.
Implementations§
Trait Implementations§
Source§impl Clone for ShiftAmount
impl Clone for ShiftAmount
Source§fn clone(&self) -> ShiftAmount
fn clone(&self) -> ShiftAmount
Returns a duplicate 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 ShiftAmount
impl Debug for ShiftAmount
Source§impl From<usize> for ShiftAmount
impl From<usize> for ShiftAmount
Source§fn from(val: usize) -> ShiftAmount
fn from(val: usize) -> ShiftAmount
Returns a new ShiftAmount from the given usize.
Source§impl Hash for ShiftAmount
impl Hash for ShiftAmount
Source§impl Ord for ShiftAmount
impl Ord for ShiftAmount
Source§fn cmp(&self, other: &ShiftAmount) -> Ordering
fn cmp(&self, other: &ShiftAmount) -> 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 ShiftAmount
impl PartialEq for ShiftAmount
Source§impl PartialOrd for ShiftAmount
impl PartialOrd for ShiftAmount
impl Copy for ShiftAmount
impl Eq for ShiftAmount
impl StructuralPartialEq for ShiftAmount
Auto Trait Implementations§
impl Freeze for ShiftAmount
impl RefUnwindSafe for ShiftAmount
impl Send for ShiftAmount
impl Sync for ShiftAmount
impl Unpin for ShiftAmount
impl UnwindSafe for ShiftAmount
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