Enum astrolabe::errors::AstrolabeError
source · pub enum AstrolabeError {
OutOfRange(OutOfRange),
InvalidFormat(InvalidFormat),
}
Expand description
Custom error enum for the astrolabe crate.
Variants§
OutOfRange(OutOfRange)
An error indicating that some given parameter is out of range or resulted in an out of range date/time value.
InvalidFormat(InvalidFormat)
An error indicating that the string to be parsed is invalid.
Trait Implementations§
source§impl Clone for AstrolabeError
impl Clone for AstrolabeError
source§fn clone(&self) -> AstrolabeError
fn clone(&self) -> AstrolabeError
Returns a copy 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 AstrolabeError
impl Debug for AstrolabeError
source§impl Display for AstrolabeError
impl Display for AstrolabeError
source§impl From<&AstrolabeError> for String
impl From<&AstrolabeError> for String
source§fn from(e: &AstrolabeError) -> Self
fn from(e: &AstrolabeError) -> Self
Converts to this type from the input type.
source§impl From<AstrolabeError> for String
impl From<AstrolabeError> for String
source§fn from(e: AstrolabeError) -> Self
fn from(e: AstrolabeError) -> Self
Converts to this type from the input type.
source§impl Hash for AstrolabeError
impl Hash for AstrolabeError
source§impl PartialEq for AstrolabeError
impl PartialEq for AstrolabeError
source§fn eq(&self, other: &AstrolabeError) -> bool
fn eq(&self, other: &AstrolabeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AstrolabeError
impl StructuralPartialEq for AstrolabeError
Auto Trait Implementations§
impl Freeze for AstrolabeError
impl RefUnwindSafe for AstrolabeError
impl Send for AstrolabeError
impl Sync for AstrolabeError
impl Unpin for AstrolabeError
impl UnwindSafe for AstrolabeError
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