pub struct CurrencyForms {
pub unit: Vec<String>,
pub subunit: Vec<String>,
}Expand description
A CURRENCY_FORMS entry: (unit_forms, subunit_forms).
Python stores each side as a tuple of 1-3 strings — ("euro", "euros"),
or ("zloty", "zlotys", "zlotu") for languages with a third plural form.
pluralize indexes into it, so the arity is load-bearing and a language
must keep however many forms Python has.
Fields§
§unit: Vec<String>§subunit: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for CurrencyForms
impl Clone for CurrencyForms
Auto Trait Implementations§
impl Freeze for CurrencyForms
impl RefUnwindSafe for CurrencyForms
impl Send for CurrencyForms
impl Sync for CurrencyForms
impl Unpin for CurrencyForms
impl UnsafeUnpin for CurrencyForms
impl UnwindSafe for CurrencyForms
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