pub enum SubYear {
NormalSubYear(NormalSubYear),
YearDay,
LeapDay,
}Expand description
The day and month of an ArvelieDate.
Variants§
NormalSubYear(NormalSubYear)
A normal day/month pair.
YearDay
Year day. The last day of a normal year.
LeapDay
Leap day. The last day of a leap year.
Implementations§
Source§impl SubYear
impl SubYear
Sourcepub fn format_month(&self) -> String
pub fn format_month(&self) -> String
Returns the month as a letter of the alphabet.
Sourcepub fn format_day(&self) -> String
pub fn format_day(&self) -> String
Returns the day of the month, formatted as a string.
Trait Implementations§
impl Copy for SubYear
impl Eq for SubYear
Source§impl Ord for SubYear
impl Ord for SubYear
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SubYear
impl PartialOrd for SubYear
impl StructuralPartialEq for SubYear
Auto Trait Implementations§
impl Freeze for SubYear
impl RefUnwindSafe for SubYear
impl Send for SubYear
impl Sync for SubYear
impl Unpin for SubYear
impl UnsafeUnpin for SubYear
impl UnwindSafe for SubYear
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