Skip to main content

Dec32

Type Alias Dec32 

Source
pub type Dec32 = Decimal<u32, true>;
Expand description

The 32-bit decimal type, with about 9 significant digits and at most 7 fraction digits.

Since cargo generates full documentation only for the first alias (Dec128), here is almost empty. See the Decimal page for full documentation of this alias.

Aliased Type§

pub struct Dec32(/* private fields */);

Trait Implementations§

Source§

impl TryFrom<Decimal<u128, false>> for Dec32

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: UDec128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Decimal<u128, true>> for Dec32

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: Dec128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Decimal<u32, false>> for Dec32

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: UDec32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Decimal<u64, false>> for Dec32

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: UDec64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Decimal<u64, true>> for Dec32

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: Dec64) -> Result<Self, Self::Error>

Performs the conversion.