[−][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]
pub fn clone(&self) -> InvalidDayOfMonth
[src]
pub 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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<InvalidDayOfMonth> for InvalidDate
[src]
pub fn from(other: InvalidDayOfMonth) -> Self
[src]
impl PartialEq<InvalidDayOfMonth> for InvalidDayOfMonth
[src]
pub fn eq(&self, other: &InvalidDayOfMonth) -> bool
[src]
pub fn ne(&self, other: &InvalidDayOfMonth) -> bool
[src]
impl StructuralEq for InvalidDayOfMonth
[src]
impl StructuralPartialEq for InvalidDayOfMonth
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvalidDayOfMonth
[src]
impl Send for InvalidDayOfMonth
[src]
impl Sync for InvalidDayOfMonth
[src]
impl Unpin for InvalidDayOfMonth
[src]
impl UnwindSafe for InvalidDayOfMonth
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,