Enum ticktime::TickTimeType [−][src]
The way the in game datetime will be handled
Variants
The date and time is like on the planet earth (12 months, 24 hours a day, 60 minutes an hour, 60 seconds a minute)
Fields of EarthLike
seconds_per_tick: usize
How much seconds represent a tick. Should be minimum 1.
month_type: EarthLikeMonthType
Which kind of calendar to compute values
A configurable date and time type. An hour will still be 60 minutes and a minute 60 seconds.
Note that sum of season_duration
and months_durations
must match to be consistent.
Fields of Custom
Trait Implementations
impl Clone for TickTimeType
[src]
fn clone(&self) -> TickTimeType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TickTimeType
[src]
Auto Trait Implementations
impl RefUnwindSafe for TickTimeType
impl Send for TickTimeType
impl Sync for TickTimeType
impl Unpin for TickTimeType
impl UnwindSafe for TickTimeType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,