pub struct Culture {
pub name: &'static str,
pub decimal: char,
pub group: char,
pub currency: &'static str,
pub currency_space: bool,
pub short_date: &'static str,
pub long_date: &'static str,
pub short_time: &'static str,
pub months: [&'static str; 12],
pub days: [&'static str; 7],
pub yes_no: [&'static str; 2],
}Expand description
Number, currency and date conventions of a language and region.
Fields§
§name: &'static strThe culture name, e.g. pt-BR.
decimal: charDecimal separator.
group: charThousands separator.
currency: &'static strCurrency symbol.
currency_space: boolCurrency symbol before the number, with a space between them when true.
short_date: &'static strShort date pattern (d).
long_date: &'static strLong date pattern (D).
short_time: &'static strShort time pattern (t).
months: [&'static str; 12]Month names, January first.
days: [&'static str; 7]Day names, Sunday first.
yes_no: [&'static str; 2]Words for true and false.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Culture
Auto Trait Implementations§
impl Freeze for Culture
impl RefUnwindSafe for Culture
impl Send for Culture
impl Sync for Culture
impl Unpin for Culture
impl UnsafeUnpin for Culture
impl UnwindSafe for Culture
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