pub enum TimeZoneParseError {
Empty,
ContainsWhitespace,
InvalidOffsetFormat,
InvalidOffsetHour,
InvalidOffsetMinute,
OffsetOutOfRange,
InvalidTimeZoneId,
}Expand description
A time zone or fixed-offset parse error.
Variants§
Empty
The input was empty.
ContainsWhitespace
The input contained whitespace.
InvalidOffsetFormat
The fixed-offset input was malformed.
InvalidOffsetHour
The fixed-offset hour field was malformed.
InvalidOffsetMinute
The fixed-offset minute field was malformed or out of range.
OffsetOutOfRange
The fixed offset was outside the civil -14:00..=+14:00 range.
InvalidTimeZoneId
The input was not an IANA-shaped time zone identifier.
Trait Implementations§
Source§impl Clone for TimeZoneParseError
impl Clone for TimeZoneParseError
Source§fn clone(&self) -> TimeZoneParseError
fn clone(&self) -> TimeZoneParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimeZoneParseError
impl Debug for TimeZoneParseError
Source§impl Display for TimeZoneParseError
impl Display for TimeZoneParseError
Source§impl Error for TimeZoneParseError
impl Error for TimeZoneParseError
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 Hash for TimeZoneParseError
impl Hash for TimeZoneParseError
Source§impl PartialEq for TimeZoneParseError
impl PartialEq for TimeZoneParseError
Source§fn eq(&self, other: &TimeZoneParseError) -> bool
fn eq(&self, other: &TimeZoneParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimeZoneParseError
impl Eq for TimeZoneParseError
impl StructuralPartialEq for TimeZoneParseError
Auto Trait Implementations§
impl Freeze for TimeZoneParseError
impl RefUnwindSafe for TimeZoneParseError
impl Send for TimeZoneParseError
impl Sync for TimeZoneParseError
impl Unpin for TimeZoneParseError
impl UnsafeUnpin for TimeZoneParseError
impl UnwindSafe for TimeZoneParseError
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