pub struct Config {
pub fps: u32,
}
Expand description
Contains the App
configuration settings, currently including only the framerate.
Consumes the receiver Config
and returns a new one with the maximum framerate to the
given fps
.
Constructs a Config
with a default maximum framerate of 30.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.