pub struct GameTime(/* private fields */);
Implementations§
Source§impl GameTime
impl GameTime
pub fn new(days: u32, hours: u32, minutes: u32, seconds: u32) -> Self
pub fn add_days(&mut self, days: u32)
pub fn add_hours(&mut self, hours: u32)
pub fn add_minutes(&mut self, minutes: u32)
pub fn add_seconds(&mut self, seconds: u32)
pub fn sub_days(&mut self, days: u32)
pub fn sub_hours(&mut self, hours: u32)
pub fn sub_minutes(&mut self, minutes: u32)
pub fn sub_seconds(&mut self, seconds: u32)
pub fn day(&self) -> u32
pub fn hour(&self) -> u32
pub fn minute(&self) -> u32
pub fn second(&self) -> u32
Trait Implementations§
Source§impl Ord for GameTime
impl Ord for GameTime
Source§impl PartialOrd for GameTime
impl PartialOrd for GameTime
impl Copy for GameTime
impl Eq for GameTime
Auto Trait Implementations§
impl Freeze for GameTime
impl RefUnwindSafe for GameTime
impl Send for GameTime
impl Sync for GameTime
impl Unpin for GameTime
impl UnwindSafe for GameTime
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