pub struct Counter { /* private fields */ }Implementations§
Source§impl Counter
impl Counter
pub fn reinit(&mut self)
pub fn reset(&mut self)
pub fn set_count(&mut self, value: i64)
pub fn start(&mut self)
pub fn start_real(&mut self)
pub fn start_frame(&mut self, from: i64, to: i64, frame_time: i64)
pub fn start_frame_real(&mut self, from: i64, to: i64, frame_time: i64)
pub fn start_frame_loop(&mut self, from: i64, to: i64, frame_time: i64)
pub fn start_frame_loop_real(&mut self, from: i64, to: i64, frame_time: i64)
pub fn stop(&mut self)
pub fn resume(&mut self)
pub fn update_time(&mut self, past_game_time: i32, past_real_time: i32)
pub fn get_count(&self) -> i64
pub fn get_count_with_frame(&self, _current_frame: i64) -> i64
pub fn is_running(&self) -> bool
Trait Implementations§
impl Copy for Counter
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnsafeUnpin for Counter
impl UnwindSafe for Counter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.