pub struct WorldClock {
pub year: u32,
pub month: u32,
pub day: u32,
pub hour: f32,
pub days_per_month: u32,
pub months_per_year: u32,
pub epoch_name: String,
}Expand description
In-game calendar tracking.
Fields§
§year: u32§month: u32§day: u32§hour: f32§days_per_month: u32§months_per_year: u32§epoch_name: StringImplementations§
Source§impl WorldClock
impl WorldClock
Trait Implementations§
Source§impl Clone for WorldClock
impl Clone for WorldClock
Source§fn clone(&self) -> WorldClock
fn clone(&self) -> WorldClock
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 WorldClock
impl Debug for WorldClock
Auto Trait Implementations§
impl Freeze for WorldClock
impl RefUnwindSafe for WorldClock
impl Send for WorldClock
impl Sync for WorldClock
impl Unpin for WorldClock
impl UnsafeUnpin for WorldClock
impl UnwindSafe for WorldClock
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