pub struct TzStringError { /* private fields */ }
Expand description
Error that indicates that the provided string cannot be used in the creation of a timezone.
This error is returned by Offset::try_from
.
Trait Implementations§
Source§impl Clone for TzStringError
impl Clone for TzStringError
Source§fn clone(&self) -> TzStringError
fn clone(&self) -> TzStringError
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 TzStringError
impl Debug for TzStringError
Source§impl Display for TzStringError
impl Display for TzStringError
Source§impl Error for TzStringError
impl Error for TzStringError
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<TzStringError> for TimeError
impl From<TzStringError> for TimeError
Source§fn from(err: TzStringError) -> Self
fn from(err: TzStringError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for TzStringError
impl From<Utf8Error> for TzStringError
Source§impl Hash for TzStringError
impl Hash for TzStringError
Source§impl Ord for TzStringError
impl Ord for TzStringError
Source§fn cmp(&self, other: &TzStringError) -> Ordering
fn cmp(&self, other: &TzStringError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TzStringError
impl PartialEq for TzStringError
Source§impl PartialOrd for TzStringError
impl PartialOrd for TzStringError
impl Copy for TzStringError
impl Eq for TzStringError
impl StructuralPartialEq for TzStringError
Auto Trait Implementations§
impl Freeze for TzStringError
impl RefUnwindSafe for TzStringError
impl Send for TzStringError
impl Sync for TzStringError
impl Unpin for TzStringError
impl UnwindSafe for TzStringError
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