pub struct LongDateTime(/* private fields */);Expand description
Signed 64-bit timestamps used in some tables, in particular, for Font::created_at()
and Font::modified_at().
Implementations§
Source§impl LongDateTime
impl LongDateTime
Sourcepub fn as_unix_timestamp(self) -> Option<i64>
pub fn as_unix_timestamp(self) -> Option<i64>
Converts this timestamp to a Unix timestamp. Returns None if the timestamp would be
out of i64 bounds (unlikely).
Trait Implementations§
Source§impl Clone for LongDateTime
impl Clone for LongDateTime
Source§fn clone(&self) -> LongDateTime
fn clone(&self) -> LongDateTime
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 LongDateTime
Source§impl Debug for LongDateTime
impl Debug for LongDateTime
Source§impl PartialEq for LongDateTime
impl PartialEq for LongDateTime
Source§fn eq(&self, other: &LongDateTime) -> bool
fn eq(&self, other: &LongDateTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LongDateTime
Auto Trait Implementations§
impl Freeze for LongDateTime
impl RefUnwindSafe for LongDateTime
impl Send for LongDateTime
impl Sync for LongDateTime
impl Unpin for LongDateTime
impl UnsafeUnpin for LongDateTime
impl UnwindSafe for LongDateTime
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