pub enum IfCondition {
True,
False,
EnvEq(bool, String, ShellBit),
}Variants§
Implementations§
Source§impl IfCondition
impl IfCondition
pub fn matches(&self, context: &ScriptRunContext) -> bool
pub fn expand( &self, context: &ScriptRunContext, ) -> Result<IfCondition, ScriptRunError>
Trait Implementations§
Source§impl Clone for IfCondition
impl Clone for IfCondition
Source§fn clone(&self) -> IfCondition
fn clone(&self) -> IfCondition
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 moreSource§impl Debug for IfCondition
impl Debug for IfCondition
Auto Trait Implementations§
impl Freeze for IfCondition
impl RefUnwindSafe for IfCondition
impl Send for IfCondition
impl Sync for IfCondition
impl Unpin for IfCondition
impl UnwindSafe for IfCondition
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