pub struct Report {
pub source: &'static str,
pub opcodes: usize,
pub by_rule: Vec<Opcode>,
pub names: usize,
pub uncovered: Vec<(Opcode, &'static str)>,
pub unreachable: Vec<&'static str>,
pub elsewhere: Vec<Opcode>,
pub gaps: Vec<Opcode>,
pub unaccounted: Vec<Opcode>,
}Expand description
What a target’s rules cover, and what they do not.
Fields§
§source: &'static strThe rule file this is about, so that anything said about it names a file to open.
opcodes: usizeHow many opcodes the IR has.
by_rule: Vec<Opcode>The opcodes every name of which a rule is written at.
names: usizeHow many names those are, which is one per opcode and width.
uncovered: Vec<(Opcode, &'static str)>A name a rule could be written at and none is, which is what a missing rule looks like.
unreachable: Vec<&'static str>A name a rule is written at that nothing can ever be called, which is a dead rule.
elsewhere: Vec<Opcode>The opcodes lowered somewhere a rule cannot reach.
gaps: Vec<Opcode>The opcodes nothing lowers.
unaccounted: Vec<Opcode>The opcodes on none of the three lists, which is what a new opcode is until somebody says where it goes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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