pub struct UsageInfo {
pub use_count: usize,
pub is_escaping: bool,
pub is_in_loop: bool,
}Expand description
Per-variable usage information collected by occurrence analysis.
Fields§
§use_count: usizeHow many times the variable is referenced.
is_escaping: boolWhether the variable escapes into a closure, constructor field, or any context where its lifetime is not locally bounded.
is_in_loop: boolWhether any use of the variable occurs inside a syntactic loop (i.e., inside a recursive function body or after a back-edge).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsageInfo
impl RefUnwindSafe for UsageInfo
impl Send for UsageInfo
impl Sync for UsageInfo
impl Unpin for UsageInfo
impl UnsafeUnpin for UsageInfo
impl UnwindSafe for UsageInfo
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