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 for GameDuration
impl PartialEq 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 for GameDuration
impl PartialOrd 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 moreimpl Eq for GameDuration
impl StructuralEq for GameDuration
impl StructuralPartialEq for GameDuration
Auto Trait Implementations§
impl RefUnwindSafe for GameDuration
impl Send for GameDuration
impl Sync for GameDuration
impl Unpin for GameDuration
impl UnwindSafe for GameDuration
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