Struct biodivine_sketchbook::app::event::UserAction
source · pub struct UserAction {
pub events: Vec<Event>,
}
Expand description
A UserAction is a collection of events that originate in one GUI action.
It does not necessarily need to be triggered by the user directly, but it is expected that it somehow corresponds to a single action by the user to which the app should respond.
Fields§
§events: Vec<Event>
Implementations§
source§impl UserAction
impl UserAction
sourcepub fn byte_size(&self) -> usize
pub fn byte_size(&self) -> usize
An estimated size of this UserAction in bytes.
Trait Implementations§
source§impl Clone for UserAction
impl Clone for UserAction
source§fn clone(&self) -> UserAction
fn clone(&self) -> UserAction
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 UserAction
impl Debug for UserAction
source§impl From<Event> for UserAction
impl From<Event> for UserAction
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 UserAction
impl PartialEq for UserAction
impl Eq for UserAction
impl StructuralPartialEq for UserAction
Auto Trait Implementations§
impl Freeze for UserAction
impl RefUnwindSafe for UserAction
impl Send for UserAction
impl Sync for UserAction
impl Unpin for UserAction
impl UnwindSafe for UserAction
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.