pub struct CommandState {
pub params: HashMap<String, f64>,
pub flags: HashMap<String, bool>,
pub history: Vec<String>,
}Expand description
Shared mutable state that commands operate on.
Fields§
§params: HashMap<String, f64>§flags: HashMap<String, bool>§history: Vec<String>Log of executed command descriptions.
Trait Implementations§
Source§impl Clone for CommandState
impl Clone for CommandState
Source§fn clone(&self) -> CommandState
fn clone(&self) -> CommandState
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 moreAuto Trait Implementations§
impl Freeze for CommandState
impl RefUnwindSafe for CommandState
impl Send for CommandState
impl Sync for CommandState
impl Unpin for CommandState
impl UnsafeUnpin for CommandState
impl UnwindSafe for CommandState
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