pub struct ODESolutionStep {
pub step_id: String,
pub phase: ODEPhase,
pub title: String,
pub description: String,
pub justification: String,
pub before: Expression,
pub after: Expression,
pub latex: String,
pub metadata: HashMap<String, String>,
}Expand description
ODE solution step with mathematical and educational context
Fields§
§step_id: StringUnique step identifier
phase: ODEPhasePhase of the solution process
title: StringHuman-readable title
description: StringDetailed description
justification: StringMathematical justification
before: ExpressionExpression state before this step
after: ExpressionExpression state after this step
latex: StringLaTeX representation of the step
metadata: HashMap<String, String>Additional metadata
Implementations§
Source§impl ODESolutionStep
impl ODESolutionStep
Sourcepub fn new(
step_id: String,
phase: ODEPhase,
title: String,
description: String,
justification: String,
before: Expression,
after: Expression,
) -> Self
pub fn new( step_id: String, phase: ODEPhase, title: String, description: String, justification: String, before: Expression, after: Expression, ) -> Self
Create a new ODE solution step
Sourcepub fn with_metadata(self, key: String, value: String) -> Self
pub fn with_metadata(self, key: String, value: String) -> Self
Add metadata to the step
Sourcepub fn to_latex_detailed(&self) -> String
pub fn to_latex_detailed(&self) -> String
Get LaTeX representation with custom formatting
Trait Implementations§
Source§impl Clone for ODESolutionStep
impl Clone for ODESolutionStep
Source§fn clone(&self) -> ODESolutionStep
fn clone(&self) -> ODESolutionStep
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ODESolutionStep
impl Debug for ODESolutionStep
Source§impl<'de> Deserialize<'de> for ODESolutionStep
impl<'de> Deserialize<'de> for ODESolutionStep
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
Auto Trait Implementations§
impl Freeze for ODESolutionStep
impl RefUnwindSafe for ODESolutionStep
impl Send for ODESolutionStep
impl Sync for ODESolutionStep
impl Unpin for ODESolutionStep
impl UnwindSafe for ODESolutionStep
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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