pub struct PHP;Expand description
Philippine Peso (PHP)
The Philippine peso is the currency of the Philippines. It is subdivided into 100 centavos.
§Examples
use typed_money::{Amount, Currency, PHP};
let amount = Amount::<PHP>::from_major(100);
assert_eq!(amount.to_major_floor(), 100);
assert_eq!(PHP::CODE, "PHP");
assert_eq!(PHP::SYMBOL, "₱");Trait Implementations§
Source§impl Currency for PHP
impl Currency for PHP
Source§const DECIMALS: u8 = 2u8
const DECIMALS: u8 = 2u8
Number of decimal places for this currency (e.g., 2 for USD, 0 for JPY)
Source§const NAME: &'static str = "Philippine Peso"
const NAME: &'static str = "Philippine Peso"
Full currency name (e.g., “US Dollar”, “Euro”, “Bitcoin”)
Source§const COUNTRY: &'static str = "Philippines"
const COUNTRY: &'static str = "Philippines"
Primary country or region that issues this currency
Source§const CURRENCY_TYPE: CurrencyType = CurrencyType::Fiat
const CURRENCY_TYPE: CurrencyType = CurrencyType::Fiat
Type of currency (Fiat, Cryptocurrency, or Commodity)
Source§const INTRODUCED_YEAR: u16 = 1_949u16
const INTRODUCED_YEAR: u16 = 1_949u16
Year when this currency was introduced
Source§const ISO_4217_NUMBER: u16 = 608u16
const ISO_4217_NUMBER: u16 = 608u16
Official ISO 4217 numeric code
Source§const THOUSANDS_SEPARATOR: char = ','
const THOUSANDS_SEPARATOR: char = ','
Character used to separate thousands (e.g., ‘,’ for US, ‘.’ for EU)
Source§const DECIMAL_SEPARATOR: char = '.'
const DECIMAL_SEPARATOR: char = '.'
Character used as decimal separator (e.g., ‘.’ for US, ‘,’ for EU)
Source§const SYMBOL_POSITION: SymbolPosition = SymbolPosition::Before
const SYMBOL_POSITION: SymbolPosition = SymbolPosition::Before
Position of currency symbol relative to the amount
Source§const SPACE_BETWEEN: bool = false
const SPACE_BETWEEN: bool = false
Whether to include a space between symbol and amount
Source§const VOLATILITY_RATING: VolatilityRating = VolatilityRating::Medium
const VOLATILITY_RATING: VolatilityRating = VolatilityRating::Medium
Static volatility rating (Low, Medium, High)
Source§const LIQUIDITY_RATING: LiquidityRating = LiquidityRating::Medium
const LIQUIDITY_RATING: LiquidityRating = LiquidityRating::Medium
Static liquidity rating (Low, Medium, High)
Source§impl Ord for PHP
impl Ord for PHP
Source§impl PartialOrd for PHP
impl PartialOrd for PHP
impl Copy for PHP
impl Eq for PHP
impl StructuralPartialEq for PHP
Auto Trait Implementations§
impl Freeze for PHP
impl RefUnwindSafe for PHP
impl Send for PHP
impl Sync for PHP
impl Unpin for PHP
impl UnwindSafe for PHP
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