Skip to main content

Crate basis_points

Crate basis_points 

Source
Expand description

basis-points provides a validated BasisPoints newtype for percentage-like values represented in basis points (0..=10_000).

The crate includes integer conversions and optional rust_decimal::Decimal conversions behind the decimal feature.

Modules§

error
Error types for basis-points.

Structs§

BasisPoints
A validated basis-points value in the inclusive range 0..=10_000.