Struct cfg::classification::useful::UselessRule
source · pub struct UselessRule<R> {
pub rule: R,
pub unreachable: bool,
pub unproductive: bool,
}
Expand description
A reference to a useless rule, together with the reason for its uselessness.
Fields§
§rule: R
Reference to a rule.
unreachable: bool
Indicates whether the rule is unreachable.
unproductive: bool
Indicates whether the rule is unproductive.
Trait Implementations§
source§impl<R: Clone> Clone for UselessRule<R>
impl<R: Clone> Clone for UselessRule<R>
source§fn clone(&self) -> UselessRule<R>
fn clone(&self) -> UselessRule<R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<R> RefUnwindSafe for UselessRule<R>where R: RefUnwindSafe,
impl<R> Send for UselessRule<R>where R: Send,
impl<R> Sync for UselessRule<R>where R: Sync,
impl<R> Unpin for UselessRule<R>where R: Unpin,
impl<R> UnwindSafe for UselessRule<R>where R: UnwindSafe,
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