pub struct Bv<S: Size + ?Sized> { /* private fields */ }Expand description
An unsigned integer (bitvector), whose size is indicated by the type parameter S.
Implementations§
Source§impl<S: Size> Bv<S>
impl<S: Size> Bv<S>
pub fn overflowing_add(self, other: Bv<S>) -> (Bv<S>, bool)
pub fn overflowing_sub(self, other: Bv<S>) -> (Bv<S>, bool)
pub fn overflowing_mul(self, other: Bv<S>) -> (Bv<S>, bool)
pub fn leading_zeros(self) -> u32
Trait Implementations§
Source§impl<S: Size> Ord for Bv<S>
impl<S: Size> Ord for Bv<S>
Source§impl<S: Size> PartialOrd for Bv<S>
impl<S: Size> PartialOrd for Bv<S>
Source§impl<S: Size> Symbolic for Bv<S>
impl<S: Size> Symbolic for Bv<S>
Source§fn symbolic(desc: &str) -> Bv<S>
fn symbolic(desc: &str) -> Bv<S>
Create a new symbolic value of this type.
desc is used to refer to this symbolic value
when printing counterexamples.Source§fn symbolic_where<F: FnOnce(&Self) -> bool>(desc: &str, f: F) -> Self
fn symbolic_where<F: FnOnce(&Self) -> bool>(desc: &str, f: F) -> Self
Create a new symbolic value, subject to constraints. The result is a symbolic value of
this type on which
f returns true.impl<S: Size> Copy for Bv<S>
impl<S: Size> Eq for Bv<S>
Auto Trait Implementations§
impl<S> Freeze for Bv<S>where
S: ?Sized,
impl<S> RefUnwindSafe for Bv<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for Bv<S>where
S: Send + ?Sized,
impl<S> Sync for Bv<S>where
S: Sync + ?Sized,
impl<S> Unpin for Bv<S>where
S: Unpin + ?Sized,
impl<S> UnwindSafe for Bv<S>where
S: UnwindSafe + ?Sized,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)