Struct red4ext_rs::types::GameTime
source · 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 PartialEq for GameTime
impl PartialEq for GameTime
source§impl PartialOrd for GameTime
impl PartialOrd for GameTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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