pub enum SalvoConditionTerm {
Port {
port_name: String,
state: PortState,
},
And(Vec<Self>),
Or(Vec<Self>),
Not(Box<Self>),
}Expand description
A boolean expression over port states, used to define when salvos can trigger.
This forms a simple expression tree that can combine port state checks with logical operators (And, Or, Not).
Variants§
Port
Check if a specific port matches a state predicate.
And(Vec<Self>)
All sub-terms must be true.
Or(Vec<Self>)
At least one sub-term must be true.
Not(Box<Self>)
The sub-term must be false.
Trait Implementations§
Source§impl Clone for SalvoConditionTerm
impl Clone for SalvoConditionTerm
Source§fn clone(&self) -> SalvoConditionTerm
fn clone(&self) -> SalvoConditionTerm
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 SalvoConditionTerm
impl RefUnwindSafe for SalvoConditionTerm
impl Send for SalvoConditionTerm
impl Sync for SalvoConditionTerm
impl Unpin for SalvoConditionTerm
impl UnwindSafe for SalvoConditionTerm
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