[][src]Struct ndless_sdl::gfx::framerate::FPS

pub struct FPS { /* fields omitted */ }

Example:

let manager = FPS::new();
manager.framerate(60); // 60 FPS
loop {
    println!("loop");
    manager.delay();
}

Implementations

impl FPS[src]

pub fn new() -> Self[src]

pub fn delay(&mut self)[src]

pub fn framerate(&mut self, rate: u32)[src]

pub fn get_framerate(&self) -> u32[src]

pub fn frame_count(&self) -> u32[src]

Trait Implementations

impl Debug for FPS[src]

impl Default for FPS[src]

Auto Trait Implementations

impl Send for FPS

impl Sync for FPS

impl Unpin for FPS

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.