pub enum Errors {
Carry,
ParseError(String),
}
Expand description
Errors handles all oddities which may occur in this library.
Variants
Carry
Carry is returned when a provided function does not support time carry. For example,
if a call to Datetime::new
receives 60 seconds and there are only 59 seconds in the provided
date time then a Carry Error is returned as the Result.
ParseError(String)
ParseError is returned when a provided string could not be parsed and converted to the desired struct (e.g. Datetime).
Trait Implementations
sourceimpl From<ParseIntError> for Errors
impl From<ParseIntError> for Errors
sourcefn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Errors
impl Send for Errors
impl Sync for Errors
impl Unpin for Errors
impl UnwindSafe for Errors
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more