pub enum PassCondition {
Always,
FeatureEnabled(String),
Callback(String),
All(Vec<PassCondition>),
Any(Vec<PassCondition>),
}Expand description
Condition that controls whether a pass executes.
Variants§
Always
Always execute.
FeatureEnabled(String)
Execute only when the named feature is enabled.
Callback(String)
Execute only when a boolean callback returns true.
All(Vec<PassCondition>)
Combine conditions with AND.
Any(Vec<PassCondition>)
Combine conditions with OR.
Implementations§
Trait Implementations§
Source§impl Clone for PassCondition
impl Clone for PassCondition
Source§fn clone(&self) -> PassCondition
fn clone(&self) -> PassCondition
Returns a duplicate 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 Freeze for PassCondition
impl RefUnwindSafe for PassCondition
impl Send for PassCondition
impl Sync for PassCondition
impl Unpin for PassCondition
impl UnsafeUnpin for PassCondition
impl UnwindSafe for PassCondition
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