pub enum Months {
January = 1,
February = 2,
March = 3,
April = 4,
May = 5,
June = 6,
July = 7,
August = 8,
September = 9,
October = 10,
November = 11,
December = 12,
}
Variants§
January = 1
February = 2
March = 3
April = 4
May = 5
June = 6
July = 7
August = 8
September = 9
October = 10
November = 11
December = 12
Implementations§
source§impl Months
impl Months
pub const fn index(&self) -> u8
pub const fn name(&self) -> &'static str
pub const fn days(&self, leap: bool) -> u8
pub const fn seconds(&self, leap: bool) -> u128
pub fn from(month: u8) -> Months
pub fn next(&self) -> Months
pub fn previous(&self) -> Months
pub fn next_nth(&self, nth: u128) -> Months
pub fn previous_nth(&self, nth: u128) -> Months
Auto Trait Implementations§
impl Freeze for Months
impl RefUnwindSafe for Months
impl Send for Months
impl Sync for Months
impl Unpin for Months
impl UnwindSafe for Months
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