pub enum MathConstant {
Pi,
E,
I,
Infinity,
NegInfinity,
}Expand description
Mathematical constants used in expressions.
These represent well-known mathematical constants with precise mathematical meaning.
§Examples
use mathlex::ast::MathConstant;
let pi = MathConstant::Pi;
let euler = MathConstant::E;
assert_ne!(pi, euler);Variants§
Pi
The mathematical constant π (pi), approximately 3.14159…
E
Euler’s number e, approximately 2.71828…
I
The imaginary unit i, where i² = -1
Infinity
Positive infinity (∞)
NegInfinity
Negative infinity (-∞)
Trait Implementations§
Source§impl Clone for MathConstant
impl Clone for MathConstant
Source§fn clone(&self) -> MathConstant
fn clone(&self) -> MathConstant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MathConstant
impl Debug for MathConstant
Source§impl Display for MathConstant
impl Display for MathConstant
Source§impl Hash for MathConstant
impl Hash for MathConstant
Source§impl PartialEq for MathConstant
impl PartialEq for MathConstant
Source§impl ToLatex for MathConstant
impl ToLatex for MathConstant
impl Copy for MathConstant
impl Eq for MathConstant
impl StructuralPartialEq for MathConstant
Auto Trait Implementations§
impl Freeze for MathConstant
impl RefUnwindSafe for MathConstant
impl Send for MathConstant
impl Sync for MathConstant
impl Unpin for MathConstant
impl UnwindSafe for MathConstant
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