pub struct Effect {
pub set_effects: Vec<(usize, SetExpression)>,
pub vector_effects: Vec<(usize, VectorExpression)>,
pub element_effects: Vec<(usize, ElementExpression)>,
pub integer_effects: Vec<(usize, IntegerExpression)>,
pub continuous_effects: Vec<(usize, ContinuousExpression)>,
pub element_resource_effects: Vec<(usize, ElementExpression)>,
pub integer_resource_effects: Vec<(usize, IntegerExpression)>,
pub continuous_resource_effects: Vec<(usize, ContinuousExpression)>,
}Expand description
Effect in a transition.
Fields§
§set_effects: Vec<(usize, SetExpression)>Pairs of the index of a set variable and a set expression. Must be sorted by the indices of the set variables.
vector_effects: Vec<(usize, VectorExpression)>Pairs of the index of a vector variable and a vector expression. Must be sorted by the indices of the vector variables.
element_effects: Vec<(usize, ElementExpression)>Pairs of the index of an element variable and an element expression.
integer_effects: Vec<(usize, IntegerExpression)>Pairs of the index of an integer variable and an integer expression.
continuous_effects: Vec<(usize, ContinuousExpression)>Pairs of the index of a continuous variable and a continuous expression.
element_resource_effects: Vec<(usize, ElementExpression)>Pairs of the index of an element resource variable and an element expression.
integer_resource_effects: Vec<(usize, IntegerExpression)>Pairs of the index of an integer resource variable and an integer expression.
continuous_resource_effects: Vec<(usize, ContinuousExpression)>Pairs of the index of a continuous resource variable and a continuous expression.
Trait Implementations§
source§impl PartialEq for Effect
impl PartialEq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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