pub enum IfCondition {
}
Variants§
NonEmpty(Value)
Eq(Value, String)
Neq(Value, String)
RegEq(Value, String, bool)
RegNeq(Value, String, bool)
Exists(Value)
NotExists(Value)
FileExists(Value)
FileNotExists(Value)
DirExists(Value)
DirNotExists(Value)
Executable(Value)
NotExecutable(Value)
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
Source§impl PartialEq for IfCondition
impl PartialEq for IfCondition
impl Eq for IfCondition
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more