Struct cbor_data::value::Exponential [−][src]
pub struct Exponential<'a, B: Base> { /* fields omitted */ }Expand description
A representation of a bignum
The base is statically known while the exponent is dynamic. The mantissa is not guaranteed to have optimal encoding, i.e. it can have leading zero bytes.
The represented value is m * base.pow(exponent), where
m = mantissaforinverted == false, andm = -1 - mantissaforinverted = true.
Implementations
Cut ties with possibly referenced byte slices, allocating if necessary
Get a reference to the exponential’s mantissa.
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<'a, B> RefUnwindSafe for Exponential<'a, B> where
B: RefUnwindSafe,
impl<'a, B> Send for Exponential<'a, B> where
B: Send,
impl<'a, B> Sync for Exponential<'a, B> where
B: Sync,
impl<'a, B> Unpin for Exponential<'a, B> where
B: Unpin,
impl<'a, B> UnwindSafe for Exponential<'a, B> where
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more