Enum raystack_core::Number [−][src]
pub enum Number { Basic(BasicNumber), Scientific(ScientificNumber), }
Expand description
A Haystack number.
Variants
Basic(BasicNumber)
Scientific(ScientificNumber)
Implementations
Create a new Number
. If present, the unit should
be a valid unit string from Project Haystack’s
unit database.
Create a new Number
and no unit.
Create a new scientific notation Number
. If present, the unit should
be a valid unit string from Project Haystack’s
unit database.
Create a new scientific notation Number
and no unit.
If this represents a non-scientific notation number, return the number.
If this represents a number in scientific notation, return the scientific notation number.
Return a string containing Axon code representing this number.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Number
impl UnwindSafe for Number
Blanket Implementations
Mutably borrows from an owned value. Read more