pub struct DateTimeLocale {
pub months: [&'static str; 12],
pub months_standalone: [&'static str; 12],
pub months_abbreviated: [&'static str; 12],
pub weekdays: [&'static str; 7],
pub weekdays_abbreviated: [&'static str; 7],
pub am: &'static str,
pub pm: &'static str,
pub date: &'static str,
pub time: &'static str,
}Expand description
Month and weekday names, AM/PM markers and default patterns of a locale,
used by DateTimeFormatter.
Fields§
§months: [&'static str; 12]Month names in the form used in dates (%B), from January.
months_standalone: [&'static str; 12]Standalone month names (%OB), from January.
months_abbreviated: [&'static str; 12]Abbreviated month names (%b), from January.
weekdays: [&'static str; 7]Weekday names (%A), from Sunday.
weekdays_abbreviated: [&'static str; 7]Abbreviated weekday names (%a), from Sunday.
am: &'static strMorning marker (%p before noon).
pm: &'static strAfternoon marker (%p from noon).
date: &'static strDate pattern (%x).
time: &'static strTime pattern (%X).
Trait Implementations§
Source§impl Clone for DateTimeLocale
impl Clone for DateTimeLocale
impl Copy for DateTimeLocale
Source§impl Debug for DateTimeLocale
impl Debug for DateTimeLocale
impl Eq for DateTimeLocale
Source§impl PartialEq for DateTimeLocale
impl PartialEq for DateTimeLocale
impl StructuralPartialEq for DateTimeLocale
Auto Trait Implementations§
impl Forget for DateTimeLocale
impl Freeze for DateTimeLocale
impl Move for DateTimeLocale
impl RefUnwindSafe for DateTimeLocale
impl Send for DateTimeLocale
impl Sync for DateTimeLocale
impl Unpin for DateTimeLocale
impl UnsafeUnpin for DateTimeLocalewhere
&'static str: UnsafeUnpin,
impl UnwindSafe for DateTimeLocalewhere
&'static str: UnwindSafe,
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