pub struct DateTimeFormat {
pub date: Option<DateTimeStyle>,
pub time: Option<DateTimeStyle>,
}Expand description
How a date and time are written: Fluent’s DATETIME() dateStyle
and timeStyle, Intl.DateTimeFormat’s. Each platform maps them to
the styles it has. Neither: the date, short.
Fields§
§date: Option<DateTimeStyle>§time: Option<DateTimeStyle>Implementations§
Source§impl DateTimeFormat
impl DateTimeFormat
Sourcepub fn resolved(self) -> (Option<DateTimeStyle>, Option<DateTimeStyle>)
pub fn resolved(self) -> (Option<DateTimeStyle>, Option<DateTimeStyle>)
What’s shown: the date short when the format says nothing.
Trait Implementations§
Source§impl Clone for DateTimeFormat
impl Clone for DateTimeFormat
impl Copy for DateTimeFormat
Source§impl Debug for DateTimeFormat
impl Debug for DateTimeFormat
Source§impl Default for DateTimeFormat
impl Default for DateTimeFormat
impl Eq for DateTimeFormat
Source§impl PartialEq for DateTimeFormat
impl PartialEq for DateTimeFormat
impl StructuralPartialEq for DateTimeFormat
Auto Trait Implementations§
impl Forget for DateTimeFormat
impl Freeze for DateTimeFormat
impl Move for DateTimeFormat
impl RefUnwindSafe for DateTimeFormat
impl Send for DateTimeFormat
impl Sync for DateTimeFormat
impl Unpin for DateTimeFormat
impl UnsafeUnpin for DateTimeFormat
impl UnwindSafe for DateTimeFormat
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