1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! `wrapped-decimal` provides [`WrappedDecimal`], a fixed-size wrapper around
//! [`rust_decimal::Decimal`] with a stable 16-byte representation.
//!
//! This is useful for Solana account/state layouts that require predictable,
//! POD-safe binary encoding.
use ;
use Decimal;
/// A fixed-size, POD-safe wrapper around [`rust_decimal::Decimal`].
///
/// The decimal is stored as the 16-byte serialized representation from
/// `rust_decimal`, making this type suitable for account/state layouts that
/// require stable byte size.
;