pub struct ReversePolish { /* private fields */ }
Expand description
Reverse Polish Notation (RPN) expression represented as a vector of strings
§Fields
rp_expression
: A vector of strings (Vec<String>
) representing the expression in Reverse Polish Notation (RPN).- Each string in the vector is a single token of the RPN expression (e.g., “2”, “3”, “+”).
Implementations§
Source§impl ReversePolish
Result of the calculations done through the C Library.
impl ReversePolish
Result of the calculations done through 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
: An additional message providing details about the calculation outcome, such as errors or warnings.
Auto Trait Implementations§
impl Freeze for ReversePolish
impl RefUnwindSafe for ReversePolish
impl Send for ReversePolish
impl Sync for ReversePolish
impl Unpin for ReversePolish
impl UnwindSafe for ReversePolish
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