pub struct Date {
pub year: Year,
pub day: Day,
}
Fields§
§year: Year
§day: Day
Implementations§
source§impl Date
impl Date
sourcepub fn release_time(&self) -> SystemTime
pub fn release_time(&self) -> SystemTime
The SystemTime
when the puzzle was released/is scheduled to release.
This can be compared to SystemTime::now()
to check if a puzzle is released, or how long
remains until release.
sourcepub fn next_puzzle() -> Option<Date>
pub fn next_puzzle() -> Option<Date>
The Date
of the next puzzle.
Trait Implementations§
source§impl Ord for Date
impl Ord for Date
source§impl PartialOrd for Date
impl PartialOrd for Date
impl Copy for Date
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)