[−][src]Struct gregorian::InvalidDayOfMonth
The day is not valid for the year and month.
Fields
year: Year
month: Month
day: u8
Implementations
impl InvalidDayOfMonth
[src]
pub const fn check(year: Year, month: Month, day: u8) -> Result<(), Self>
[src]
pub const fn next_valid(self) -> Date
[src]
Get the next valid date.
This function returns the first day of the next month for the invalid date.
It does not add the excess days in the new month.
pub const fn prev_valid(self) -> Date
[src]
Get the last valid date before the invalid date.
This function returns the last day of the current month for the invalid date.
Trait Implementations
impl Clone for InvalidDayOfMonth
[src]
fn clone(&self) -> InvalidDayOfMonth
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for InvalidDayOfMonth
[src]
impl Debug for InvalidDayOfMonth
[src]
impl Display for InvalidDayOfMonth
[src]
impl Eq for InvalidDayOfMonth
[src]
impl Error for InvalidDayOfMonth
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<InvalidDayOfMonth> for InvalidDate
[src]
fn from(other: InvalidDayOfMonth) -> Self
[src]
impl PartialEq<InvalidDayOfMonth> for InvalidDayOfMonth
[src]
fn eq(&self, other: &InvalidDayOfMonth) -> bool
[src]
fn ne(&self, other: &InvalidDayOfMonth) -> bool
[src]
impl StructuralEq for InvalidDayOfMonth
[src]
impl StructuralPartialEq for InvalidDayOfMonth
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvalidDayOfMonth
impl Send for InvalidDayOfMonth
impl Sync for InvalidDayOfMonth
impl Unpin for InvalidDayOfMonth
impl UnwindSafe for InvalidDayOfMonth
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,