pub enum Step {
One,
Two,
Three,
Four,
}
Expand description
The Steps
Variants§
Trait Implementations§
Source§impl BodyExt<Mode, Step> for ModuleData
impl BodyExt<Mode, Step> for ModuleData
Source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
is complete
Source§fn kind() -> ModuleKind
fn kind() -> ModuleKind
get the kind from the type itself
Source§fn new_with_mode_and_theme(mode: Mode, theme: ThemeId) -> Self
fn new_with_mode_and_theme(mode: Mode, theme: ThemeId) -> Self
given a Mode, get a new Self
will usually populate an inner .content
Source§fn requires_choose_mode(&self) -> bool
fn requires_choose_mode(&self) -> bool
requires an additional step of choosing the mode
Source§fn set_editor_state_step(&mut self, step: Step)
fn set_editor_state_step(&mut self, step: Step)
Set editor state step
Source§fn set_editor_state_steps_completed(&mut self, steps_completed: HashSet<Step>)
fn set_editor_state_steps_completed(&mut self, steps_completed: HashSet<Step>)
Set editor state steps completed
Source§fn get_editor_state_step(&self) -> Option<Step>
fn get_editor_state_step(&self) -> Option<Step>
Get editor state step
Source§fn get_editor_state_steps_completed(&self) -> Option<HashSet<Step>>
fn get_editor_state_steps_completed(&self) -> Option<HashSet<Step>>
Get editor state steps completed
Source§fn choose_mode_list() -> Vec<Mode>
fn choose_mode_list() -> Vec<Mode>
get choose mode list. By default it’s the full list
but that can be overridden to re-order or hide some modes
Source§fn has_preload() -> bool
fn has_preload() -> bool
should wait for manual phase change to Init
Source§fn insert_editor_state_step_completed(&mut self, step: Step)
fn insert_editor_state_step_completed(&mut self, step: Step)
Insert a completed step
Source§fn convert_to_body(&self, kind: ModuleKind) -> Result<Body, &'static str>
fn convert_to_body(&self, kind: ModuleKind) -> Result<Body, &'static str>
Convert this inner data to a Body wrapper of a specific kind
Source§impl<'de> Deserialize<'de> for Step
impl<'de> Deserialize<'de> for Step
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
Source§impl StepExt for Step
impl StepExt for Step
Source§fn get_preview() -> Self
fn get_preview() -> Self
Get the step which is synonymous with “preview”
TODO: this could probably be derived as a combo
of get_list() and next() (i.e. the first step to return None)
Source§fn is_preview(&self) -> bool
fn is_preview(&self) -> bool
Auto-implemented, check whether current step is “preview”
impl Copy for Step
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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