pub struct Decimal {
pub unscaled: BigInt,
pub scale: i32,
}Fields§
§unscaled: BigInt§scale: i32Implementations§
Trait Implementations§
impl Eq for Decimal
Source§impl Serializer for Decimal
impl Serializer for Decimal
type Target = Decimal
Source§fn write_data(
value: &Decimal,
context: &mut WriteContext<'_>,
) -> Result<(), Error>
fn write_data( value: &Decimal, context: &mut WriteContext<'_>, ) -> Result<(), Error>
Write the target body only.
Source§fn read_data(context: &mut ReadContext<'_>) -> Result<Decimal, Error>
fn read_data(context: &mut ReadContext<'_>) -> Result<Decimal, Error>
Read the target body only.
Source§fn default_value(_: &mut ReadContext<'_>) -> Result<Decimal, Error>
fn default_value(_: &mut ReadContext<'_>) -> Result<Decimal, Error>
Construct a target for a null or missing local value.
Source§fn read_arc_any(
context: &mut ReadContext<'_>,
) -> Result<Arc<dyn Any + Sync + Send>, Error>
fn read_arc_any( context: &mut ReadContext<'_>, ) -> Result<Arc<dyn Any + Sync + Send>, Error>
Read directly into the final owner for sync dynamic carriers.
impl StructuralPartialEq for Decimal
Auto Trait Implementations§
impl Freeze for Decimal
impl RefUnwindSafe for Decimal
impl Send for Decimal
impl Sync for Decimal
impl Unpin for Decimal
impl UnsafeUnpin for Decimal
impl UnwindSafe for Decimal
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