#[repr(C)]pub struct DecimalObj {
pub header: HeapHeader,
pub value: Decimal,
}Expand description
Refcounted, repr(C) Decimal carrier for v2 runtime. Total: 24 bytes (header 8 + value 16).
Fields§
§header: HeapHeader§value: DecimalImplementations§
Source§impl DecimalObj
impl DecimalObj
Trait Implementations§
Source§impl HeapElement for DecimalObj
impl HeapElement for DecimalObj
Source§unsafe fn release_elem(ptr: *const Self)
unsafe fn release_elem(ptr: *const Self)
Decrement the reference count of
*ptr. If the refcount reaches
zero, fully deallocate the object (including any nested payload
buffers per the implementor’s drop semantics). Read moreAuto Trait Implementations§
impl !Freeze for DecimalObj
impl RefUnwindSafe for DecimalObj
impl Send for DecimalObj
impl Sync for DecimalObj
impl Unpin for DecimalObj
impl UnsafeUnpin for DecimalObj
impl UnwindSafe for DecimalObj
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