pub enum IcalOffset {
One(i32),
Gap {
before: i32,
after: i32,
},
Fold {
earlier: i32,
later: i32,
},
}Expand description
What offset is in force at one civil local time.
Variants§
One(i32)
The local time is unambiguous, and this offset is in force. Seconds east
of UTC, so -0500 is -18000.
Gap
The local time never happens: a transition jumped over it.
Fields
Fold
The local time happens twice.
Implementations§
Source§impl IcalOffset
impl IcalOffset
Sourcepub fn unambiguous(&self) -> Option<i32>
pub fn unambiguous(&self) -> Option<i32>
The offset, when the local time has exactly one. None for a gap or a
fold, which is the whole point of distinguishing them.
Trait Implementations§
Source§impl Clone for IcalOffset
impl Clone for IcalOffset
Source§fn clone(&self) -> IcalOffset
fn clone(&self) -> IcalOffset
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 moreimpl Copy for IcalOffset
Source§impl Debug for IcalOffset
impl Debug for IcalOffset
impl Eq for IcalOffset
Source§impl PartialEq for IcalOffset
impl PartialEq for IcalOffset
impl StructuralPartialEq for IcalOffset
Auto Trait Implementations§
impl Freeze for IcalOffset
impl RefUnwindSafe for IcalOffset
impl Send for IcalOffset
impl Sync for IcalOffset
impl Unpin for IcalOffset
impl UnsafeUnpin for IcalOffset
impl UnwindSafe for IcalOffset
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