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> PartialOrd for Signed<L>
impl<const L: u32> PartialOrd for Signed<L>
impl<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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.