pub struct Bitvector<const L: u32>(/* private fields */);
Expand description
Bitvector without signedness information.
The number of bits is specified in the generic parameter L.
Bitvectors support bitwise operations and wrapping-arithmetic operations.
Only operations where the behaviour of signed and unsigned numbers match are implemented.
For others, conversion into Unsigned
or Signed
is necessary.
Bit-extension is not possible directly, as signed and unsigned bitvectors are extended differently.
Implementations§
Trait Implementations§
impl<const L: u32> Copy for Bitvector<L>
impl<const L: u32> Eq for Bitvector<L>
impl<const L: u32> StructuralPartialEq for Bitvector<L>
Auto Trait Implementations§
impl<const L: u32> Freeze for Bitvector<L>
impl<const L: u32> RefUnwindSafe for Bitvector<L>
impl<const L: u32> Send for Bitvector<L>
impl<const L: u32> Sync for Bitvector<L>
impl<const L: u32> Unpin for Bitvector<L>
impl<const L: u32> UnwindSafe for Bitvector<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> 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.