Skip to main content

Report

Struct Report 

Source
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 str

The rule file this is about, so that anything said about it names a file to open.

§opcodes: usize

How many opcodes the IR has.

§by_rule: Vec<Opcode>

The opcodes every name of which a rule is written at.

§names: usize

How 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§

Source§

impl Debug for Report

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Report

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.