pub enum DateType {
JisX0301Basic,
JisX0301Extended,
JisX0301ExtendedWithKanji,
SeparatedWithKanji,
}Expand description
Date type
Each type has following format:
| Type | Format Example |
|---|---|
JisX0301Basic | 01.02.03 |
JisX0301Extended | R01.02.03 |
JisX0301ExtendedWithKanji | 令01.02.03 |
SeparatedWithKanji | 令和1年2月3日 |
§Remark
JIS X 0301 requires each value (year, month and day) to be padded with 0 if it is 1-digit value.
Ref: https://kikakurui.com/x0/X0301-2019-01.html
This library also accepts un-padded value because 0-padding is not always complied even in official documents.
Variants§
Trait Implementations§
Source§impl Ord for DateType
impl Ord for DateType
Source§impl PartialOrd for DateType
impl PartialOrd for DateType
impl Copy for DateType
impl Eq for DateType
impl StructuralPartialEq for DateType
Auto Trait Implementations§
impl Freeze for DateType
impl RefUnwindSafe for DateType
impl Send for DateType
impl Sync for DateType
impl Unpin for DateType
impl UnwindSafe for DateType
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