pub struct LogosDate(pub i32);Expand description
Date stored as days since Unix epoch (1970-01-01).
Range: ±5.8 million years from epoch.
Tuple Fields§
§0: i32Implementations§
Source§impl LogosDate
impl LogosDate
Sourcepub fn year(&self) -> i64
pub fn year(&self) -> i64
UTC calendar components — AOT mirrors of year_of/month_of/day_of/weekday_of on a Date.
pub fn month(&self) -> i64
pub fn day(&self) -> i64
pub fn weekday(&self) -> i64
Sourcepub fn iso_week(&self) -> i64
pub fn iso_week(&self) -> i64
The ISO-8601 week number (1..=53) — the AOT mirror of week_of on a Date.
Trait Implementations§
Source§impl Ord for LogosDate
impl Ord for LogosDate
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for LogosDate
impl PartialOrd for LogosDate
impl Copy for LogosDate
impl Eq for LogosDate
impl StructuralPartialEq for LogosDate
Auto Trait Implementations§
impl Freeze for LogosDate
impl RefUnwindSafe for LogosDate
impl Send for LogosDate
impl Sync for LogosDate
impl Unpin for LogosDate
impl UnsafeUnpin for LogosDate
impl UnwindSafe for LogosDate
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.