#[non_exhaustive]pub enum NextError {
NoCalendarChange,
NegativeYearValue {
year: i32,
},
SemLevelNotInFormat {
spec: String,
},
NewDateIsBefore,
}Expand description
An error that occurred while incrementing a Version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoCalendarChange
When updating a Cal version, the date provided yielded an identical version.
NegativeYearValue
SemLevelNotInFormat
NewDateIsBefore
The new date passed to a next call was before the date represented by the current
version.
Trait Implementations§
Source§impl Error for NextError
impl Error for NextError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<NextError> for CompositeError
impl From<NextError> for CompositeError
impl StructuralPartialEq for NextError
Auto Trait Implementations§
impl Freeze for NextError
impl RefUnwindSafe for NextError
impl Send for NextError
impl Sync for NextError
impl Unpin for NextError
impl UnwindSafe for NextError
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