[−][src]Enum cfg_expr::expr::Predicate
A single predicate in a cfg()
expression
Variants
Target(TargetPredicate)
A target predicate, with the target_
prefix
Whether rustc's test harness is enabled
Enabled when compiling without optimizations.
Enabled for crates of the proc_macro type.
Feature(&'a str)
TargetFeature(&'a str)
Flag(&'a str)
A generic bare predicate key that doesn't match one of the known options, eg cfg(bare)
A generic key = "value" predicate that doesn't match one of the known options, eg cfg(foo = "bar")
Trait Implementations
impl<'a> Debug for Predicate<'a>
[src]
impl<'a> PartialEq<Predicate<'a>> for Predicate<'a>
[src]
impl<'a> StructuralPartialEq for Predicate<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Predicate<'a>
impl<'a> Send for Predicate<'a>
impl<'a> Sync for Predicate<'a>
impl<'a> Unpin for Predicate<'a>
impl<'a> UnwindSafe for Predicate<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,