Struct naia_shared::GameDuration
source · pub struct GameDuration { /* private fields */ }Implementations§
source§impl GameDuration
impl GameDuration
pub fn from_millis(millis: u32) -> Self
pub fn as_millis(&self) -> u32
pub fn add_millis(&self, millis: u32) -> Self
pub fn sub_millis(&self, millis: u32) -> Self
Trait Implementations§
source§impl Clone for GameDuration
impl Clone for GameDuration
source§fn clone(&self) -> GameDuration
fn clone(&self) -> GameDuration
Returns a copy 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 PartialEq<GameDuration> for GameDuration
impl PartialEq<GameDuration> for GameDuration
source§fn eq(&self, other: &GameDuration) -> bool
fn eq(&self, other: &GameDuration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<GameDuration> for GameDuration
impl PartialOrd<GameDuration> for GameDuration
source§fn partial_cmp(&self, other: &GameDuration) -> Option<Ordering>
fn partial_cmp(&self, other: &GameDuration) -> Option<Ordering>
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 more