Struct raystack_core::BasicNumber [−][src]
pub struct BasicNumber { /* fields omitted */ }
Expand description
A Haystack Number, encapsulating a scalar value and an optional unit value. The unit is represented as a string. This does not represent Haystack scientific notation numbers.
Implementations
Create a new BasicNumber
. If present, the unit should
be a valid unit string from Project Haystack’s
unit database.
Create a new BasicNumber
with no unit.
Return a string containing Axon code representing this number.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BasicNumber
impl Send for BasicNumber
impl Sync for BasicNumber
impl Unpin for BasicNumber
impl UnwindSafe for BasicNumber
Blanket Implementations
Mutably borrows from an owned value. Read more