pub struct InvalidHourError(/* private fields */);Expand description
An error indicating that a value is not a valid hour (0–23).
Trait Implementations§
Source§impl Clone for InvalidHourError
impl Clone for InvalidHourError
Source§fn clone(&self) -> InvalidHourError
fn clone(&self) -> InvalidHourError
Returns a duplicate 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 InvalidHourError
impl Debug for InvalidHourError
Source§impl Display for InvalidHourError
impl Display for InvalidHourError
Source§impl Error for InvalidHourError
impl Error for InvalidHourError
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<InvalidHourError> for InvalidTimeError
impl From<InvalidHourError> for InvalidTimeError
Source§fn from(source: InvalidHourError) -> Self
fn from(source: InvalidHourError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidHourError
impl PartialEq for InvalidHourError
impl Copy for InvalidHourError
impl Eq for InvalidHourError
impl StructuralPartialEq for InvalidHourError
Auto Trait Implementations§
impl Freeze for InvalidHourError
impl RefUnwindSafe for InvalidHourError
impl Send for InvalidHourError
impl Sync for InvalidHourError
impl Unpin for InvalidHourError
impl UnsafeUnpin for InvalidHourError
impl UnwindSafe for InvalidHourError
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