Struct ParseError

pub struct ParseError { /* private fields */ }

An error that can occur when parsing a POSIX time zone string.

Implementations

impl ParseError

fn is_missing_dst_transition_rule(&self) -> bool

Returns true if parsing a POSIX time zone failed because a DST transition rule was missing.

As of POSIX 2024, behavior is unspecified when a DST abbreviation is provided but a transition rule is omitted. In this case, Jiff chooses to return an error. Some POSIX implementations default to the US daylight saving time rules or even behave as if TZ=posixrules was set.

Callers therefore might want to inspect when Jiff rejects a POSIX time zone because of a missing transition rule and do something different.

Trait Implementations

impl Clone for ParseError

fn clone(&self) -> Self

impl Debug for ParseError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for ParseError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for ParseError

impl PartialEq for ParseError

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for ParseError

Auto Trait Implementations

impl Freeze for ParseError

impl RefUnwindSafe for ParseError

impl Send for ParseError

impl Sync for ParseError

impl Unpin for ParseError

impl UnsafeUnpin for ParseError

impl UnwindSafe for ParseError

Blanket Implementations

impl<T> Any for ParseError where T: 'static + ?Sized,

impl<T> Borrow<T> for ParseError where T: ?Sized,

impl<T> BorrowMut<T> for ParseError where T: ?Sized,

impl<T> CloneToUninit for ParseError where T: Clone,

impl<T> From<T> for ParseError

impl<T> ToOwned for ParseError where T: Clone,

impl<T> ToString for ParseError where T: Display + ?Sized,

impl<T, U> Into<U> for ParseError where U: From<T>,

impl<T, U> TryFrom<U> for ParseError where U: Into<T>,

impl<T, U> TryInto<U> for ParseError where U: TryFrom<T>,