pub enum DecimalMantissa<'a> {
I64(i64),
Big(Cow<'a, [u8]>),
}Expand description
Decimal mantissa representation.
Most decimals fit in i64; larger values use big-endian two’s complement bytes.
Variants§
I64(i64)
Mantissa fits in signed 64-bit integer.
Big(Cow<'a, [u8]>)
Arbitrary precision: big-endian two’s complement, minimal-length.
Implementations§
Source§impl DecimalMantissa<'_>
impl DecimalMantissa<'_>
Trait Implementations§
Source§impl<'a> Clone for DecimalMantissa<'a>
impl<'a> Clone for DecimalMantissa<'a>
Source§fn clone(&self) -> DecimalMantissa<'a>
fn clone(&self) -> DecimalMantissa<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DecimalMantissa<'a>
impl<'a> Debug for DecimalMantissa<'a>
Source§impl<'a> Hash for DecimalMantissa<'a>
impl<'a> Hash for DecimalMantissa<'a>
Source§impl<'a> PartialEq for DecimalMantissa<'a>
impl<'a> PartialEq for DecimalMantissa<'a>
impl<'a> Eq for DecimalMantissa<'a>
impl<'a> StructuralPartialEq for DecimalMantissa<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecimalMantissa<'a>
impl<'a> RefUnwindSafe for DecimalMantissa<'a>
impl<'a> Send for DecimalMantissa<'a>
impl<'a> Sync for DecimalMantissa<'a>
impl<'a> Unpin for DecimalMantissa<'a>
impl<'a> UnwindSafe for DecimalMantissa<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more