pub struct CalculationResult {
pub success: bool,
pub expression: String,
pub rpn_expression: String,
pub result: f64,
pub message: String,
}
Expand description
Represents the result of a calculation performed using the C Library.
§Fields
success
: A boolean indicating whether the calculation was successful.expression
: The original mathematical expression provided by the user.rpn_expression
: The corresponding expression in Reverse Polish Notation (RPN).result
: The numerical result of the calculation.message
: A string containing additional details about the calculation outcome, such as errors or warnings.
Fields§
§success: bool
§expression: String
§rpn_expression: String
§result: f64
§message: String
Auto Trait Implementations§
impl Freeze for CalculationResult
impl RefUnwindSafe for CalculationResult
impl Send for CalculationResult
impl Sync for CalculationResult
impl Unpin for CalculationResult
impl UnwindSafe for CalculationResult
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