Struct baa::BitVecValueMutRef
source · pub struct BitVecValueMutRef<'a> { /* private fields */ }Trait Implementations§
source§impl<'a> BitVecMutOps for BitVecValueMutRef<'a>
impl<'a> BitVecMutOps for BitVecValueMutRef<'a>
source§impl<'a> BitVecOps for BitVecValueMutRef<'a>
impl<'a> BitVecOps for BitVecValueMutRef<'a>
fn width(&self) -> WidthInt
fn words(&self) -> &[Word]
source§fn to_bit_str(&self) -> String
fn to_bit_str(&self) -> String
Convert to a string of 1s and 0s.
fn to_bytes_le(&self) -> Vec<u8>
source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
Returns the value as a 64-bit unsigned integer if the value can be represented
source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
Returns the value as a 64-bit signed integer if the value can be represented
fn is_zero(&self) -> bool
fn is_negative(&self) -> bool
fn add<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn sub<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn shift_left<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn shift_right<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn arithmetic_shift_right<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn mul<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn and<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn or<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn xor<R: BitVecOps>(&self, rhs: &R) -> BitVecValue
fn is_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_not_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_greater<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_greater_or_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_less<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_less_or_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_greater_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_greater_or_equal_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_less_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn is_less_or_equal_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool
fn slice(&self, msb: WidthInt, lsb: WidthInt) -> BitVecValue
fn sign_extend(&self, by: WidthInt) -> BitVecValue
fn zero_extend(&self, by: WidthInt) -> BitVecValue
fn not(&self) -> BitVecValue
fn negate(&self) -> BitVecValue
fn concat<R: BitVecOps + ?Sized>(&self, rhs: &R) -> BitVecValue
source§impl<'a> Debug for BitVecValueMutRef<'a>
impl<'a> Debug for BitVecValueMutRef<'a>
source§impl<'a> From<&'a mut BitVecValue> for BitVecValueMutRef<'a>
impl<'a> From<&'a mut BitVecValue> for BitVecValueMutRef<'a>
source§fn from(value: &'a mut BitVecValue) -> Self
fn from(value: &'a mut BitVecValue) -> Self
Converts to this type from the input type.
source§impl<'a, I> IndexToMutRef<I, BitVecValueMutRef<'a>> for &'a mut [Word]where
I: Borrow<BitVecValueIndex>,
impl<'a, I> IndexToMutRef<I, BitVecValueMutRef<'a>> for &'a mut [Word]where
I: Borrow<BitVecValueIndex>,
fn get_mut_ref(self, index: I) -> BitVecValueMutRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for BitVecValueMutRef<'a>
impl<'a> RefUnwindSafe for BitVecValueMutRef<'a>
impl<'a> Send for BitVecValueMutRef<'a>
impl<'a> Sync for BitVecValueMutRef<'a>
impl<'a> Unpin for BitVecValueMutRef<'a>
impl<'a> !UnwindSafe for BitVecValueMutRef<'a>
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