Struct cfg::usefulness::UselessRule [] [src]

pub struct UselessRule<R> {
    pub rule: R,
    pub unreachable: bool,
    pub unproductive: bool,
}

A reference to a useless rule, together with the reason for its uselessness.

Fields

rule

Reference to a rule.

unreachable

Indicates whether the rule is unreachable.

unproductive

Indicates whether the rule is unproductive.

Trait Implementations

Derived Implementations

impl<R: Debug> Debug for UselessRule<R>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<R: Clone> Clone for UselessRule<R>

fn clone(&self) -> UselessRule<R>

1.0.0fn clone_from(&mut self, source: &Self)