pub enum StateImpact {
Set {
at: Tick,
value: StateValue,
},
Require {
start: Tick,
end: Tick,
value: StateValue,
},
}Expand description
One effect of an activity on a state timeline.
Variants§
Set
The state becomes value at tick at and keeps it until the next set.
Fields
§
value: StateValueThe new state value.
Require
The state must equal value at every tick of the half-open interval [start, end).
Implementations§
Trait Implementations§
Source§impl Clone for StateImpact
impl Clone for StateImpact
impl Copy for StateImpact
Source§impl Debug for StateImpact
impl Debug for StateImpact
Source§impl<'de> Deserialize<'de> for StateImpact
impl<'de> Deserialize<'de> for StateImpact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StateImpact
Source§impl Hash for StateImpact
impl Hash for StateImpact
Source§impl PartialEq for StateImpact
impl PartialEq for StateImpact
Source§impl Serialize for StateImpact
impl Serialize for StateImpact
impl StructuralPartialEq for StateImpact
Auto Trait Implementations§
impl Forget for StateImpact
impl Freeze for StateImpact
impl Move for StateImpact
impl RefUnwindSafe for StateImpact
impl Send for StateImpact
impl Sync for StateImpact
impl Unpin for StateImpact
impl UnsafeUnpin for StateImpact
impl UnwindSafe for StateImpact
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