pub struct IntervalTAAction {
pub(crate) variable: Variable,
pub(crate) effect: IntervalActionEffect,
}Expand description
Action describing the effect of an action on an interval
The action updates the interval of a variable
Fields§
§variable: VariableVariable to be updated
effect: IntervalActionEffectEffect of the action
Implementations§
Source§impl IntervalTAAction
impl IntervalTAAction
Sourcepub fn new(variable: Variable, effect: IntervalActionEffect) -> IntervalTAAction
pub fn new(variable: Variable, effect: IntervalActionEffect) -> IntervalTAAction
Creates a new interval action
Sourcepub fn effect(&self) -> &IntervalActionEffect
pub fn effect(&self) -> &IntervalActionEffect
Returns the effect of the action
Trait Implementations§
Source§impl ActionDefinition for IntervalTAAction
impl ActionDefinition for IntervalTAAction
Source§fn is_unchanged(&self) -> bool
fn is_unchanged(&self) -> bool
Check whether the action does not change any variables, i.e. is a noop
Source§fn is_increment(&self) -> bool
fn is_increment(&self) -> bool
Check whether the action is an increment action
Source§fn is_decrement(&self) -> bool
fn is_decrement(&self) -> bool
Check whether the action is a decrement action
Source§impl Clone for IntervalTAAction
impl Clone for IntervalTAAction
Source§fn clone(&self) -> IntervalTAAction
fn clone(&self) -> IntervalTAAction
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 IntervalTAAction
impl Debug for IntervalTAAction
Source§impl Display for IntervalTAAction
impl Display for IntervalTAAction
Source§impl From<Action> for IntervalTAAction
impl From<Action> for IntervalTAAction
Source§impl Hash for IntervalTAAction
impl Hash for IntervalTAAction
Source§impl Ord for IntervalTAAction
impl Ord for IntervalTAAction
Source§fn cmp(&self, other: &IntervalTAAction) -> Ordering
fn cmp(&self, other: &IntervalTAAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IntervalTAAction
impl PartialEq for IntervalTAAction
Source§impl PartialOrd for IntervalTAAction
impl PartialOrd for IntervalTAAction
impl Eq for IntervalTAAction
impl StructuralPartialEq for IntervalTAAction
Auto Trait Implementations§
impl Freeze for IntervalTAAction
impl RefUnwindSafe for IntervalTAAction
impl Send for IntervalTAAction
impl Sync for IntervalTAAction
impl Unpin for IntervalTAAction
impl UnwindSafe for IntervalTAAction
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