Struct cwe_checker_lib::pcode::RegisterProperties
source · pub struct RegisterProperties {
pub register: String,
pub base_register: String,
pub lsb: ByteSize,
pub size: ByteSize,
}
Expand description
Properties of a register with respect to its base register.
Fields§
§register: String
The register name.
base_register: String
The name of the base register.
lsb: ByteSize
The least significant byte of the register when viewed as a sub-register of the base register.
size: ByteSize
The size (in bytes) of the register
Trait Implementations§
source§impl Clone for RegisterProperties
impl Clone for RegisterProperties
source§fn clone(&self) -> RegisterProperties
fn clone(&self) -> RegisterProperties
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 RegisterProperties
impl Debug for RegisterProperties
source§impl<'de> Deserialize<'de> for RegisterProperties
impl<'de> Deserialize<'de> for RegisterProperties
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&RegisterProperties> for Variable
impl From<&RegisterProperties> for Variable
source§fn from(register_prop: &RegisterProperties) -> IrVariable
fn from(register_prop: &RegisterProperties) -> IrVariable
Create a variable representing the same register as the given register_prop
.
source§impl Hash for RegisterProperties
impl Hash for RegisterProperties
source§impl PartialEq for RegisterProperties
impl PartialEq for RegisterProperties
source§fn eq(&self, other: &RegisterProperties) -> bool
fn eq(&self, other: &RegisterProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RegisterProperties
impl Serialize for RegisterProperties
impl Eq for RegisterProperties
impl StructuralEq for RegisterProperties
impl StructuralPartialEq for RegisterProperties
Auto Trait Implementations§
impl RefUnwindSafe for RegisterProperties
impl Send for RegisterProperties
impl Sync for RegisterProperties
impl Unpin for RegisterProperties
impl UnwindSafe for RegisterProperties
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.