Enum raystack::Number [−][src]
pub enum Number {
Basic(BasicNumber),
Scientific(ScientificNumber),
}
Expand description
A Haystack number.
Variants
Basic(BasicNumber)
Tuple Fields of Basic
0: BasicNumber
Scientific(ScientificNumber)
Tuple Fields of Scientific
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
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more