#[non_exhaustive]pub enum WallclockForm {
DateTime {
years: u16,
months: u8,
days: u8,
hours: u8,
minutes: u8,
seconds: u8,
fraction: Option<String>,
},
WallTime {
hours: u8,
minutes: u8,
seconds: Option<u8>,
fraction: Option<String>,
},
Date {
years: u16,
months: u8,
days: u8,
},
}Expand description
Wallclock-time forms — TTML2 §12.3.1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for WallclockForm
impl Clone for WallclockForm
Source§fn clone(&self) -> WallclockForm
fn clone(&self) -> WallclockForm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WallclockForm
impl Debug for WallclockForm
Source§impl PartialEq for WallclockForm
impl PartialEq for WallclockForm
impl StructuralPartialEq for WallclockForm
Auto Trait Implementations§
impl Freeze for WallclockForm
impl RefUnwindSafe for WallclockForm
impl Send for WallclockForm
impl Sync for WallclockForm
impl Unpin for WallclockForm
impl UnsafeUnpin for WallclockForm
impl UnwindSafe for WallclockForm
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