Enum tomllib::types::TimeOffset [] [src]

pub enum TimeOffset<'a> {
    Zulu,
    Time(TimeOffsetAmount<'a>),
}

Represents either a timezone of Zulu or or hour plus minute timezone offset from UTC.

Variants

ZuluTime(TimeOffsetAmount<'a>)

Methods

impl<'a> TimeOffset<'a>
[src]

fn validate(&self) -> bool

Trait Implementations

impl<'a> Clone for TimeOffset<'a>
[src]

fn clone(&self) -> TimeOffset<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Eq for TimeOffset<'a>
[src]

impl<'a> Debug for TimeOffset<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> PartialEq for TimeOffset<'a>
[src]

fn eq(&self, other: &TimeOffset<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> Display for TimeOffset<'a>
[src]

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

Formats the value using the given formatter.