Enum melib::sieve::ControlCommand
source · pub enum ControlCommand {
Stop,
Require(Vec<String>),
If {
condition: (ConditionRule, RuleBlock),
elsif: Option<(ConditionRule, RuleBlock)>,
else_: Option<RuleBlock>,
},
}
Variants§
Stop
Require(Vec<String>)
If
Trait Implementations§
source§impl Clone for ControlCommand
impl Clone for ControlCommand
source§fn clone(&self) -> ControlCommand
fn clone(&self) -> ControlCommand
Returns a copy 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 ControlCommand
impl Debug for ControlCommand
source§impl PartialEq for ControlCommand
impl PartialEq for ControlCommand
source§fn eq(&self, other: &ControlCommand) -> bool
fn eq(&self, other: &ControlCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ControlCommand
impl StructuralPartialEq for ControlCommand
Auto Trait Implementations§
impl Freeze for ControlCommand
impl RefUnwindSafe for ControlCommand
impl Send for ControlCommand
impl Sync for ControlCommand
impl Unpin for ControlCommand
impl UnwindSafe for ControlCommand
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.