pub struct SpeedConfig {
pub ms_value: u64,
pub name: &'static str,
pub score_modifier: u16,
pub symbol: &'static str,
}Expand description
Contains all configuration data for a speed level
Fields§
§ms_value: u64Delay in milliseconds between moves
name: &'static strHuman-readable name of the speed level
score_modifier: u16Score multiplier for this speed level
symbol: &'static strSymbol representing this speed level
Trait Implementations§
Source§impl Clone for SpeedConfig
impl Clone for SpeedConfig
Source§fn clone(&self) -> SpeedConfig
fn clone(&self) -> SpeedConfig
Returns a duplicate 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 Debug for SpeedConfig
impl Debug for SpeedConfig
impl Copy for SpeedConfig
Auto Trait Implementations§
impl Freeze for SpeedConfig
impl RefUnwindSafe for SpeedConfig
impl Send for SpeedConfig
impl Sync for SpeedConfig
impl Unpin for SpeedConfig
impl UnwindSafe for SpeedConfig
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more