pub enum Offset {
Z,
Custom {
minutes: i16,
},
}
Expand description
A parsed TOML time offset
Variants§
Z
A suffix which, when applied to a time, denotes a UTC offset of 00:00; often spoken “Zulu” from the ICAO phonetic alphabet representation of the letter “Z”. — RFC 3339 section 2
Custom
Offset between local time and UTC
Trait Implementations§
source§impl Ord for Offset
impl Ord for Offset
source§impl PartialEq for Offset
impl PartialEq for Offset
source§impl PartialOrd for Offset
impl PartialOrd for Offset
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 Offset
impl Eq for Offset
impl StructuralEq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnwindSafe for Offset
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.