pub struct Day {
pub year: i32,
pub month: i32,
pub day: i32,
pub new_month: bool,
pub new_year: bool,
}Expand description
The day that just ended: the date the game computed it for, which
anvil-game.day reports after the frame.
Fields§
§year: i32The year.
month: i321–12.
day: i321–31.
new_month: boolThe 1st of a month: the game ran its monthly update in this day.
new_year: bool1 January: the game also ran its yearly update.
Trait Implementations§
impl Copy for Day
impl Eq for Day
impl StructuralPartialEq for Day
Auto Trait Implementations§
impl Forget for Day
impl Freeze for Day
impl Move for Day
impl RefUnwindSafe for Day
impl Send for Day
impl Sync for Day
impl Unpin for Day
impl UnsafeUnpin for Day
impl UnwindSafe for Day
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