Struct baa::ValueInterner
source · pub struct ValueInterner { /* private fields */ }Expand description
Ensures that each bit vector value gets a unique index. And each combination of value and width will get a unique BitVecValueIndex
Implementations§
source§impl ValueInterner
impl ValueInterner
pub fn new() -> Self
pub fn is_zero<I: Borrow<BitVecValueIndex>>(index: I) -> bool
pub fn is_one<I: Borrow<BitVecValueIndex>>(index: I) -> bool
pub fn get_index<'a>( &mut self, value: impl Into<BitVecValueRef<'a>>, ) -> BitVecValueIndex
pub fn words(&self) -> &[Word]
Trait Implementations§
source§impl Clone for ValueInterner
impl Clone for ValueInterner
source§fn clone(&self) -> ValueInterner
fn clone(&self) -> ValueInterner
Returns a copy 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 ValueInterner
impl Debug for ValueInterner
Auto Trait Implementations§
impl Freeze for ValueInterner
impl RefUnwindSafe for ValueInterner
impl Send for ValueInterner
impl Sync for ValueInterner
impl Unpin for ValueInterner
impl UnwindSafe for ValueInterner
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§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)