pub struct LTC;Expand description
Litecoin (LTC)
Litecoin is a peer-to-peer cryptocurrency and open-source software project released under the MIT/X11 license. It is based on Bitcoin but with faster transaction confirmation times and improved storage efficiency.
§Examples
use typed_money::{Amount, Currency, LTC};
let amount = Amount::<LTC>::from_major(1);
assert_eq!(amount.to_major_floor(), 1);
assert_eq!(LTC::CODE, "LTC");
assert_eq!(LTC::SYMBOL, "Ł");Trait Implementations§
Source§impl Currency for LTC
impl Currency for LTC
Source§const DECIMALS: u8 = 8u8
const DECIMALS: u8 = 8u8
Number of decimal places for this currency (e.g., 2 for USD, 0 for JPY)
Source§const NAME: &'static str = "Litecoin"
const NAME: &'static str = "Litecoin"
Full currency name (e.g., “US Dollar”, “Euro”, “Bitcoin”)
Source§const REGION: &'static str = "Worldwide"
const REGION: &'static str = "Worldwide"
Geographic region where this currency is primarily used
Source§const CURRENCY_TYPE: CurrencyType = CurrencyType::Cryptocurrency
const CURRENCY_TYPE: CurrencyType = CurrencyType::Cryptocurrency
Type of currency (Fiat, Cryptocurrency, or Commodity)
Source§const INTRODUCED_YEAR: u16 = 2_011u16
const INTRODUCED_YEAR: u16 = 2_011u16
Year when this currency was introduced
Source§const ISO_4217_NUMBER: u16 = 0u16
const ISO_4217_NUMBER: u16 = 0u16
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::High
const VOLATILITY_RATING: VolatilityRating = VolatilityRating::High
Static volatility rating (Low, Medium, High)
Source§const LIQUIDITY_RATING: LiquidityRating = LiquidityRating::High
const LIQUIDITY_RATING: LiquidityRating = LiquidityRating::High
Static liquidity rating (Low, Medium, High)
Source§impl Ord for LTC
impl Ord for LTC
Source§impl PartialOrd for LTC
impl PartialOrd for LTC
impl Copy for LTC
impl Eq for LTC
impl StructuralPartialEq for LTC
Auto Trait Implementations§
impl Freeze for LTC
impl RefUnwindSafe for LTC
impl Send for LTC
impl Sync for LTC
impl Unpin for LTC
impl UnwindSafe for LTC
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