pub trait BodyConvert {
Show 14 methods
// Provided methods
fn convertable_list() -> Vec<ModuleKind> { ... }
fn convert_to_memory(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_matching(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_flashcards(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_card_quiz(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_poster(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_tapping_board(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_drag_drop(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_cover(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_resource_cover(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_find_answer(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_video(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_embed(&self) -> Result<ModuleData, &'static str> { ... }
fn convert_to_legacy(&self) -> Result<ModuleData, &'static str> { ... }
}
Expand description
These will all error by default. Modules that can be converted between eachother must override The relevant methods
Provided Methods§
Sourcefn convertable_list() -> Vec<ModuleKind>
fn convertable_list() -> Vec<ModuleKind>
Get a list of valid conversion targets
Sourcefn convert_to_memory(&self) -> Result<ModuleData, &'static str>
fn convert_to_memory(&self) -> Result<ModuleData, &'static str>
Memory game
Sourcefn convert_to_matching(&self) -> Result<ModuleData, &'static str>
fn convert_to_matching(&self) -> Result<ModuleData, &'static str>
Matching
Sourcefn convert_to_flashcards(&self) -> Result<ModuleData, &'static str>
fn convert_to_flashcards(&self) -> Result<ModuleData, &'static str>
Flashcards
Sourcefn convert_to_card_quiz(&self) -> Result<ModuleData, &'static str>
fn convert_to_card_quiz(&self) -> Result<ModuleData, &'static str>
Quiz game
Sourcefn convert_to_poster(&self) -> Result<ModuleData, &'static str>
fn convert_to_poster(&self) -> Result<ModuleData, &'static str>
Talking Poster
Sourcefn convert_to_tapping_board(&self) -> Result<ModuleData, &'static str>
fn convert_to_tapping_board(&self) -> Result<ModuleData, &'static str>
Listen & Learn
Sourcefn convert_to_drag_drop(&self) -> Result<ModuleData, &'static str>
fn convert_to_drag_drop(&self) -> Result<ModuleData, &'static str>
Drag & Drop
Sourcefn convert_to_cover(&self) -> Result<ModuleData, &'static str>
fn convert_to_cover(&self) -> Result<ModuleData, &'static str>
Cover
Sourcefn convert_to_resource_cover(&self) -> Result<ModuleData, &'static str>
fn convert_to_resource_cover(&self) -> Result<ModuleData, &'static str>
Resource Cover
Sourcefn convert_to_find_answer(&self) -> Result<ModuleData, &'static str>
fn convert_to_find_answer(&self) -> Result<ModuleData, &'static str>
Resource Cover
Sourcefn convert_to_video(&self) -> Result<ModuleData, &'static str>
fn convert_to_video(&self) -> Result<ModuleData, &'static str>
Video
Sourcefn convert_to_embed(&self) -> Result<ModuleData, &'static str>
fn convert_to_embed(&self) -> Result<ModuleData, &'static str>
Embed
Sourcefn convert_to_legacy(&self) -> Result<ModuleData, &'static str>
fn convert_to_legacy(&self) -> Result<ModuleData, &'static str>
Legacy
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.