Struct opentelemetry::metrics::Number [−][src]
pub struct Number(_);
This is supported on crate feature
metrics
only.Expand description
Number represents either an integral or a floating point value. It needs to be accompanied with a source of NumberKind that describes the actual type of the value stored within Number.
Implementations
Create an atomic version of the current number
Compares this number to the given other number. Both should be of the same kind.
Casts the number to i64
. May result in data/precision loss.
Casts the number to f64
. May result in data/precision loss.
Casts the number to u64
. May result in data/precision loss.
Checks if this value ia an f64 nan value. Do not use on non-f64 values.
true
if the actual value is less than zero.
Return loaded data for debugging purposes
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Number
impl UnwindSafe for Number
Blanket Implementations
Mutably borrows from an owned value. Read more