pub struct DayOfMonth(/* private fields */);Implementations§
Source§impl DayOfMonth
impl DayOfMonth
pub const MIN: u32 = 1u32
pub const MAX: u32 = 31u32
pub fn new(value: u32) -> Self
pub fn to_u32(&self) -> u32
pub fn is_appliable(&self, month: CalendarYearMonth) -> bool
pub fn on(self, month: CalendarYearMonth) -> CalendarDate
pub fn is_after(&self, other: &Self) -> bool
pub fn is_before(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for DayOfMonth
impl Clone for DayOfMonth
Source§fn clone(&self) -> DayOfMonth
fn clone(&self) -> DayOfMonth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DayOfMonth
impl Debug for DayOfMonth
Source§impl Hash for DayOfMonth
impl Hash for DayOfMonth
Source§impl PartialEq for DayOfMonth
impl PartialEq for DayOfMonth
Source§impl PartialOrd for DayOfMonth
impl PartialOrd for DayOfMonth
impl Eq for DayOfMonth
impl StructuralPartialEq for DayOfMonth
Auto Trait Implementations§
impl Freeze for DayOfMonth
impl RefUnwindSafe for DayOfMonth
impl Send for DayOfMonth
impl Sync for DayOfMonth
impl Unpin for DayOfMonth
impl UnwindSafe for DayOfMonth
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