pub enum StateWrite {
Set(i32),
Add(i32),
Clear,
}Expand description
What one of the DSL v0.10 state verbs does to a datum — the value half of
QuestEffect::writes_state.
Variants§
Set(i32)
set-state: the datum becomes this value.
Add(i32)
add-state: the datum moves by this signed amount.
Clear
clear-state: the datum returns to its declared initial.
Trait Implementations§
Source§impl Clone for StateWrite
impl Clone for StateWrite
Source§fn clone(&self) -> StateWrite
fn clone(&self) -> StateWrite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StateWrite
Source§impl Debug for StateWrite
impl Debug for StateWrite
impl Eq for StateWrite
Source§impl PartialEq for StateWrite
impl PartialEq for StateWrite
impl StructuralPartialEq for StateWrite
Auto Trait Implementations§
impl Freeze for StateWrite
impl RefUnwindSafe for StateWrite
impl Send for StateWrite
impl Sync for StateWrite
impl Unpin for StateWrite
impl UnsafeUnpin for StateWrite
impl UnwindSafe for StateWrite
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