pub struct Date { /* private fields */ }Implementations§
Source§impl Date
impl Date
pub const fn new(year: Year, day: Day) -> Option<Date>
pub const fn year(self) -> Year
pub const fn day(self) -> Day
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