Struct debris_llir::opt::variable_metadata::VariableUsage
source · pub struct VariableUsage {
pub reads: usize,
pub writes: usize,
pub constant_value: Option<i32>,
}
Expand description
General data about the usage of a specific variable
Fields§
§reads: usize
§writes: usize
§constant_value: Option<i32>
Implementations§
source§impl VariableUsage
impl VariableUsage
pub fn add_read(&mut self)
pub fn remove_read(&mut self)
pub fn add_write(&mut self, value: Option<i32>)
pub fn remove_write(&mut self)
Trait Implementations§
source§impl Clone for VariableUsage
impl Clone for VariableUsage
source§fn clone(&self) -> VariableUsage
fn clone(&self) -> VariableUsage
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 VariableUsage
impl Debug for VariableUsage
source§impl Default for VariableUsage
impl Default for VariableUsage
source§fn default() -> VariableUsage
fn default() -> VariableUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for VariableUsage
impl Send for VariableUsage
impl Sync for VariableUsage
impl Unpin for VariableUsage
impl UnwindSafe for VariableUsage
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