pub struct VariableUsage {
pub read_count: usize,
pub write_count: usize,
pub readers: Vec<String>,
pub writers: Vec<String>,
pub has_dead_usage: bool,
}Expand description
Statistics about variable usage
Fields§
§read_count: usizeNumber of times variable is read
write_count: usizeNumber of times variable is written
readers: Vec<String>Nodes that read this variable
writers: Vec<String>Nodes that write this variable
has_dead_usage: boolWhether variable is used after its last meaningful use
Trait Implementations§
Source§impl Clone for VariableUsage
impl Clone for VariableUsage
Source§fn clone(&self) -> VariableUsage
fn clone(&self) -> VariableUsage
Returns a duplicate 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<'de> Deserialize<'de> for VariableUsage
impl<'de> Deserialize<'de> for VariableUsage
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
Auto Trait Implementations§
impl Freeze for VariableUsage
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