Enum cbor_data::value::Number [−][src]
pub enum Number<'a> {
Int(i128),
IEEE754(f64),
Decimal(Exponential<'a, Ten>),
Float(Exponential<'a, Two>),
}Expand description
Representation of a number extracted from a CBOR item
Variants
Int(i128)
Tuple Fields
0: i128an integer number from major types 0 or 1
IEEE754(f64)
Tuple Fields
0: f64a floating-point number from major type 7
Decimal(Exponential<'a, Ten>)
Tuple Fields
0: Exponential<'a, Ten>a big integer or big decimal with value mantissa * 10.pow(exponent)
Float(Exponential<'a, Two>)
Tuple Fields
0: Exponential<'a, Two>a big integer or big decimal with value mantissa * 2.pow(exponent)
Implementations
Cut ties with possibly referenced byte slices, allocating if necessary
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Number<'a>
impl<'a> UnwindSafe for Number<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
