INNER CODE UNIT · Rust
step
lemunozm/ruscii · src/app.rs:71
pub fn step(&self) -> usize {
self.step
}
}
/// The essential parts of the application, containing its [`Config`], [`State`], and [`Window`].
///
/// [`App`] objects are created with a default maximum framerate of 30 using [`App::default`].
/// To change this, pass a [`Config`] object with the desired framerate using [`App::config`].
#[derive(Default)]
pub struct App {
config: Config,
state: State,
window: Window,
}
impl App {
/// Constructs an [`App`] with the given [`Config`].