pub struct Event {
pub kind: Kind,
pub what: &'static str,
pub count: u32,
}Expand description
One named thing a pass did or did not do, and how many times.
Fields§
§kind: KindWhich of the three it is.
what: &'static strThe site, in words, as a thing that happened to one instruction or one loop. Read after a count, as in “3 x instruction folded to a constant”, so it is singular and has no number of its own in it.
count: u32How many times, which is at least one because an event with a count of zero is not recorded.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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