pub struct Month(/* private fields */);
Expand description
The Month
struct. Holds a u8 because there’s just 12 months.
Implementations§
Source§impl Month
impl Month
Sourcepub fn new(value: u8) -> Result<Self, DateErrors>
pub fn new(value: u8) -> Result<Self, DateErrors>
Returns a new Month
from a u8
, or an error containing DateErrors
.
Trait Implementations§
impl Eq for Month
impl StructuralPartialEq for Month
Auto Trait Implementations§
impl Freeze for Month
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