pub struct EditorState<STEP>where
STEP: StepExt,{
pub step: STEP,
pub steps_completed: HashSet<STEP>,
}
Expand description
Generic editor state which must be preserved between sessions Although these are saved to the db, they aren’t relevant for playback
Fields§
§step: STEP
the current step
steps_completed: HashSet<STEP>
the completed steps
Trait Implementations§
Source§impl<STEP> Clone for EditorState<STEP>
impl<STEP> Clone for EditorState<STEP>
Source§fn clone(&self) -> EditorState<STEP>
fn clone(&self) -> EditorState<STEP>
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<STEP> Debug for EditorState<STEP>
impl<STEP> Debug for EditorState<STEP>
Source§impl<STEP> Default for EditorState<STEP>
impl<STEP> Default for EditorState<STEP>
Source§fn default() -> EditorState<STEP>
fn default() -> EditorState<STEP>
Returns the “default value” for a type. Read more
Source§impl<'de, STEP> Deserialize<'de> for EditorState<STEP>where
STEP: StepExt + Deserialize<'de>,
impl<'de, STEP> Deserialize<'de> for EditorState<STEP>where
STEP: StepExt + Deserialize<'de>,
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
Auto Trait Implementations§
impl<STEP> Freeze for EditorState<STEP>where
STEP: Freeze,
impl<STEP> RefUnwindSafe for EditorState<STEP>where
STEP: RefUnwindSafe,
impl<STEP> Send for EditorState<STEP>where
STEP: Send,
impl<STEP> Sync for EditorState<STEP>where
STEP: Sync,
impl<STEP> Unpin for EditorState<STEP>
impl<STEP> UnwindSafe for EditorState<STEP>where
STEP: UnwindSafe,
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