Struct machine_check::Signed
source · pub struct Signed<const L: u32>(/* private fields */);
Expand description
Signed bitvector.
The number of bits is specified in the generic parameter L.
Signed bitvectors support bitwise operations and wrapping-arithmetic operations.
Arithmetic bit extension is also possible (the sign bit is copied into any bits above it).
Signed bitvectors be converted into Unsigned
or Bitvector
.
Currently, it is not possible to create signed bitvectors directly, only convert into them.
Trait Implementations§
source§impl<const L: u32> Ord for Signed<L>
impl<const L: u32> Ord for Signed<L>
source§impl<const L: u32> PartialEq for Signed<L>
impl<const L: u32> PartialEq for Signed<L>
source§impl<const L: u32> PartialOrd for Signed<L>
impl<const L: u32> PartialOrd for Signed<L>
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 L: u32> Copy for Signed<L>
impl<const L: u32> Eq for Signed<L>
impl<const L: u32> StructuralPartialEq for Signed<L>
Auto Trait Implementations§
impl<const L: u32> Freeze for Signed<L>
impl<const L: u32> RefUnwindSafe for Signed<L>
impl<const L: u32> Send for Signed<L>
impl<const L: u32> Sync for Signed<L>
impl<const L: u32> Unpin for Signed<L>
impl<const L: u32> UnwindSafe for Signed<L>
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.