Struct spinoso_time::tzrs::TzStringError
source · 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)>
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§fn eq(&self, other: &TzStringError) -> bool
fn eq(&self, other: &TzStringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TzStringError
impl PartialOrd for TzStringError
source§fn partial_cmp(&self, other: &TzStringError) -> Option<Ordering>
fn partial_cmp(&self, other: &TzStringError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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