Struct biodivine_sketchbook::app::event::StateChange
source · pub struct StateChange {
pub events: Vec<Event>,
}
Expand description
A StateChange is internally the same as UserAction, but it represents a collection of value updates that happened on the backend.
Typically, a StateChange is emitted as a result of a UserAction. But it can be also triggered automatically, for example as part of a long-running computation.
Fields§
§events: Vec<Event>
Trait Implementations§
source§impl Clone for StateChange
impl Clone for StateChange
source§fn clone(&self) -> StateChange
fn clone(&self) -> StateChange
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 StateChange
impl Debug for StateChange
source§impl From<Event> for StateChange
impl From<Event> for StateChange
source§impl From<StateChange> for UserAction
impl From<StateChange> for UserAction
source§fn from(value: StateChange) -> Self
fn from(value: StateChange) -> Self
Converts to this type from the input type.
source§impl From<UserAction> for StateChange
impl From<UserAction> for StateChange
source§fn from(value: UserAction) -> Self
fn from(value: UserAction) -> Self
Converts to this type from the input type.
source§impl PartialEq for StateChange
impl PartialEq for StateChange
impl Eq for StateChange
impl StructuralPartialEq for StateChange
Auto Trait Implementations§
impl Freeze for StateChange
impl RefUnwindSafe for StateChange
impl Send for StateChange
impl Sync for StateChange
impl Unpin for StateChange
impl UnwindSafe for StateChange
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.