#[repr(u8)]pub enum Month {
January,
February,
March,
April,
May,
June,
July,
August,
September,
October,
November,
December,
}
Available on crate feature
cookies
only.Expand description
Months of the year.
Variants§
Implementations§
source§impl Month
impl Month
sourcepub const fn previous(self) -> Month
pub const fn previous(self) -> Month
Get the previous month.
assert_eq!(Month::January.previous(), Month::December);
sourcepub const fn next(self) -> Month
pub const fn next(self) -> Month
Get the next month.
assert_eq!(Month::January.next(), Month::February);
Trait Implementations§
source§impl PartialEq<Month> for Month
impl PartialEq<Month> for Month
impl Copy for Month
impl Eq for Month
impl StructuralEq for Month
impl StructuralPartialEq for Month
Auto Trait Implementations§
impl RefUnwindSafe for Month
impl Send for Month
impl Sync for Month
impl Unpin for Month
impl UnwindSafe for Month
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.