pub trait FunctionEducator: Send + Sync {
// Required methods
fn explain_evaluation(&self, name: &str, args: &[Expression]) -> Vec<String>;
fn to_latex(&self, name: &str, args: &[Expression]) -> String;
fn get_background(&self, name: &str) -> Option<String>;
fn get_related_concepts(&self, name: &str) -> Vec<String>;
}Expand description
Trait for function educational capabilities
Provides step-by-step explanations and educational content for mathematical functions, separated from core functionality.
Required Methods§
Sourcefn explain_evaluation(&self, name: &str, args: &[Expression]) -> Vec<String>
fn explain_evaluation(&self, name: &str, args: &[Expression]) -> Vec<String>
Generate step-by-step explanation for a function evaluation
Sourcefn to_latex(&self, name: &str, args: &[Expression]) -> String
fn to_latex(&self, name: &str, args: &[Expression]) -> String
Generate LaTeX representation of a function
Sourcefn get_background(&self, name: &str) -> Option<String>
fn get_background(&self, name: &str) -> Option<String>
Get mathematical background information
Get related functions and concepts