Struct ra_ap_cfg::DnfExpr [−][src]
pub struct DnfExpr { /* fields omitted */ }
Expand description
A #[cfg]
directive in Disjunctive Normal Form (DNF).
Implementations
impl DnfExpr
[src]
impl DnfExpr
[src]pub fn new(expr: CfgExpr) -> Self
[src]
pub fn why_inactive(&self, opts: &CfgOptions) -> Option<InactiveReason>
[src]
pub fn why_inactive(&self, opts: &CfgOptions) -> Option<InactiveReason>
[src]Computes a list of present or absent atoms in opts
that cause this expression to evaluate
to false
.
Note that flipping a subset of these atoms might be sufficient to make the whole expression
evaluate to true
. For that, see compute_enable_hints
.
Returns None
when self
is already true, or contains errors.
pub fn compute_enable_hints<'a>(
&'a self,
opts: &'a CfgOptions
) -> impl Iterator<Item = CfgDiff> + 'a
[src]
pub fn compute_enable_hints<'a>(
&'a self,
opts: &'a CfgOptions
) -> impl Iterator<Item = CfgDiff> + 'a
[src]Returns CfgDiff
objects that would enable this directive if applied to opts
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnfExpr
impl Send for DnfExpr
impl Sync for DnfExpr
impl Unpin for DnfExpr
impl UnwindSafe for DnfExpr
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more