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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LongDateTime
impl Debug for LongDateTime
Source§impl PartialEq for LongDateTime
impl PartialEq for LongDateTime
impl Copy for LongDateTime
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 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