Enum spinoso_time::Offset [−][src]
Timestamp offsets from UTC.
Spinoso time stores integer timestamps with an offset for performing datetime operations.
Variants
UTC, zero offset, zulu time.
The local offset of the machine at runtime.
Tz(Tz)
A timezone-based offset, defined by Time Zone Database.
Timezone offsets are named.
Fixed(FixedOffset)
A fixed offset from UTC, like -2:00
or +10:45
.
Trait Implementations
impl Clone for Offset
[src]
impl Copy for Offset
[src]
impl Debug for Offset
[src]
impl Eq for Offset
[src]
impl From<FixedOffset> for Offset
[src]
fn from(offset: FixedOffset) -> Self
[src]
impl From<Local> for Offset
[src]
impl From<Tz> for Offset
[src]
impl From<Utc> for Offset
[src]
impl Hash for Offset
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FixedOffset> for Offset
[src]
fn eq(&self, other: &FixedOffset) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Local> for Offset
[src]
impl PartialEq<Offset> for Offset
[src]
impl PartialEq<Tz> for Offset
[src]
impl PartialEq<Utc> for Offset
[src]
impl StructuralEq for Offset
[src]
impl StructuralPartialEq for Offset
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,