pub struct BitVecValueMutRef<'a> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BitVecMutOps for BitVecValueMutRef<'_>
impl BitVecMutOps for BitVecValueMutRef<'_>
fn words_mut(&mut self) -> &mut [Word] ⓘ
fn add_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn sub_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn shift_left_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn shift_right_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn arithmetic_shift_right_in_place( &mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps, )
fn mul_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn and_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn or_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn xor_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn concat_in_place(&mut self, lhs: &impl BitVecOps, rhs: &impl BitVecOps)
fn slice_in_place(&mut self, src: &impl BitVecOps, msb: WidthInt, lsb: WidthInt)
fn not_in_place(&mut self)
fn negate_in_place(&mut self)
fn sign_extend_in_place(&mut self, src: &impl BitVecOps, by: WidthInt)
fn zero_extend_in_place(&mut self, src: &impl BitVecOps, by: WidthInt)
fn assign<'a>(&mut self, value: impl Into<BitVecValueRef<'a>>)
Source§fn mask_msb(&mut self)
fn mask_msb(&mut self)
ensures that all unused bits in the most significant word are set to zero
Source§fn assign_ones(&mut self)
fn assign_ones(&mut self)
sets all bits to one
fn assign_from_u64(&mut self, value: u64)
fn assign_from_u128(&mut self, value: u128)
fn assign_from_i64(&mut self, value: i64)
fn assign_from_str_radix( &mut self, value: &str, radix: u32, ) -> Result<(), ParseIntError>
fn set_bit(&mut self, pos: WidthInt)
fn clear_bit(&mut self, pos: WidthInt)
Source§impl BitVecOps for BitVecValueMutRef<'_>
impl BitVecOps for BitVecValueMutRef<'_>
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.
Source§fn to_bit_str_signed(&self) -> String
fn to_bit_str_signed(&self) -> String
Convert to a string of 1s and 0s with a
- if the value is negative.Source§fn to_hex_str(&self) -> String
fn to_hex_str(&self) -> String
Convert to a string of hex characters
Source§fn to_dec_str(&self) -> String
fn to_dec_str(&self) -> String
Convert to a string of a decimal number. No leading zeros.
Source§fn to_hex_str_signed(&self) -> String
fn to_hex_str_signed(&self) -> String
Convert to a string of hex characters with a
- if the value is negative.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_true(&self) -> bool
fn is_false(&self) -> bool
fn is_zero(&self) -> bool
fn is_one(&self) -> bool
fn is_all_ones(&self) -> bool
fn is_negative(&self) -> bool
fn is_pow_2(&self) -> Option<WidthInt>
Source§fn min_width(&self) -> WidthInt
fn min_width(&self) -> WidthInt
Computes the minimum number of bits that are necessary to represent the current value.
This corresponds to the position of the most significant
1 plus one.Source§fn bit_set_intervals(&self) -> Vec<Range<WidthInt>>
fn bit_set_intervals(&self) -> Vec<Range<WidthInt>>
Computes all ranges for which the bits are one.
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 is_bit_set(&self, pos: WidthInt) -> bool
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 Debug for BitVecValueMutRef<'_>
impl Debug for BitVecValueMutRef<'_>
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