pub struct EducationalMessageGenerator;Expand description
Educational message generator providing high-level interface
Implementations§
Source§impl EducationalMessageGenerator
impl EducationalMessageGenerator
Sourcepub fn linear_equation_steps(
equation: &str,
variable: &str,
solution: &str,
) -> Vec<Step>
pub fn linear_equation_steps( equation: &str, variable: &str, solution: &str, ) -> Vec<Step>
Generate linear equation explanation
Sourcepub fn quadratic_equation_steps(
equation: &str,
variable: &str,
a: &str,
b: &str,
c: &str,
solutions: &str,
) -> Vec<Step>
pub fn quadratic_equation_steps( equation: &str, variable: &str, a: &str, b: &str, c: &str, solutions: &str, ) -> Vec<Step>
Generate quadratic equation explanation
Sourcepub fn error_explanation(
category: MessageCategory,
error_type: u8,
context: &HashMap<String, String>,
) -> Option<Step>
pub fn error_explanation( category: MessageCategory, error_type: u8, context: &HashMap<String, String>, ) -> Option<Step>
Generate error explanation
Auto Trait Implementations§
impl Freeze for EducationalMessageGenerator
impl RefUnwindSafe for EducationalMessageGenerator
impl Send for EducationalMessageGenerator
impl Sync for EducationalMessageGenerator
impl Unpin for EducationalMessageGenerator
impl UnwindSafe for EducationalMessageGenerator
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more