Struct baa::BitVecValueMutRef

source ·
pub struct BitVecValueMutRef<'a> { /* private fields */ }

Trait Implementations§

source§

impl<'a> BitVecMutOps for BitVecValueMutRef<'a>

source§

fn words_mut(&mut self) -> &mut [Word]

source§

fn assign<'a>(&mut self, value: impl Into<BitVecValueRef<'a>>)

source§

fn mask_msb(&mut self)

ensures that all unused bits in the most significant word are set to zero
source§

fn clear(&mut self)

sets all bits to zero
source§

impl<'a> BitVecOps for BitVecValueMutRef<'a>

source§

fn width(&self) -> WidthInt

source§

fn words(&self) -> &[Word]

source§

fn to_bit_str(&self) -> String

Convert to a string of 1s and 0s.
source§

fn to_bytes_le(&self) -> Vec<u8>

source§

fn to_bool(&self) -> Option<bool>

Returns value as a bool iff the value is a 1-bit value.
source§

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>

Returns the value as a 64-bit signed integer if the value can be represented
source§

fn is_zero(&self) -> bool

source§

fn is_negative(&self) -> bool

source§

fn add<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn sub<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn shift_left<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn shift_right<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn arithmetic_shift_right<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn mul<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn and<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn or<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn xor<R: BitVecOps>(&self, rhs: &R) -> BitVecValue

source§

fn is_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_not_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_greater<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_greater_or_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_less<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_less_or_equal<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_greater_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_greater_or_equal_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_less_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn is_less_or_equal_signed<R: BitVecOps + ?Sized>(&self, rhs: &R) -> bool

source§

fn slice(&self, msb: WidthInt, lsb: WidthInt) -> BitVecValue

source§

fn sign_extend(&self, by: WidthInt) -> BitVecValue

source§

fn zero_extend(&self, by: WidthInt) -> BitVecValue

source§

fn not(&self) -> BitVecValue

source§

fn negate(&self) -> BitVecValue

source§

fn concat<R: BitVecOps + ?Sized>(&self, rhs: &R) -> BitVecValue

source§

impl<'a> Debug for BitVecValueMutRef<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a mut BitVecValue> for BitVecValueMutRef<'a>

source§

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]

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.