pub enum Mode {
SettingTable,
Sorting,
WordBuilder,
SentenceBuilder,
Matching,
DressUp,
SceneBuilder,
}
Expand description
The mode
Variants§
SettingTable
Sorting
WordBuilder
SentenceBuilder
Build a Sentence
Matching
DressUp
SceneBuilder
Build a Scene
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 Mode
impl<'de> Deserialize<'de> for Mode
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 ModeExt for Mode
impl ModeExt for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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