pub enum NumberSet {
Natural,
Integer,
Rational,
Real,
Complex,
Quaternion,
}Expand description
Standard number sets in mathematics.
These are the commonly used number sets denoted with blackboard bold letters.
§Examples
use mathlex::ast::NumberSet;
let naturals = NumberSet::Natural; // ℕ
let reals = NumberSet::Real; // ℝ
let complex = NumberSet::Complex; // ℂVariants§
Natural
Natural numbers: ℕ = {0, 1, 2, 3, …} or {1, 2, 3, …}
Integer
Integers: ℤ = {…, -2, -1, 0, 1, 2, …}
Rational
Rational numbers: ℚ (fractions p/q where p,q ∈ ℤ, q ≠ 0)
Real
Real numbers: ℝ
Complex
Complex numbers: ℂ
Quaternion
Quaternions: ℍ
Trait Implementations§
impl Copy for NumberSet
impl Eq for NumberSet
impl StructuralPartialEq for NumberSet
Auto Trait Implementations§
impl Freeze for NumberSet
impl RefUnwindSafe for NumberSet
impl Send for NumberSet
impl Sync for NumberSet
impl Unpin for NumberSet
impl UnsafeUnpin for NumberSet
impl UnwindSafe for NumberSet
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