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) -> boolReturns 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=posixruleswas 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