Struct PlayerSettings

Source
pub struct PlayerSettings {
    pub colors: ColorSettings<Override<Color>>,
    pub timing: TimingSettings<Override<f32>>,
    pub objects: ObjectSettings<Override<Option<Box<str>>>, Override<[f32; 2]>, Override<f32>>,
    pub layers: LayerSettings<Override<Option<usize>>, Override<f32>, Override<Option<usize>>>,
    pub layout: LayoutSettings<Override<f32>>,
    pub names: Names,
}

Fields§

§colors: ColorSettings<Override<Color>>§timing: TimingSettings<Override<f32>>§objects: ObjectSettings<Override<Option<Box<str>>>, Override<[f32; 2]>, Override<f32>>§layers: LayerSettings<Override<Option<usize>>, Override<f32>, Override<Option<usize>>>§layout: LayoutSettings<Override<f32>>§names: Names

Implementations§

Source§

impl PlayerSettings

Source

pub fn common() -> Self

Source

pub fn apply_setting( &mut self, context: &mut SettingsContext, key: &str, value: &str, )

Source

pub fn extract_settings( &mut self, context: &mut SettingsContext, config_map: &mut IndexMap<Box<str>, Box<str>>, )

Source

pub fn reset(&mut self)

Source§

impl PlayerSettings

Source

pub fn revert(&mut self, parameter: &Parameter)

Source

pub fn change(&mut self, change: &Change)

Source

pub fn set_character_default(&mut self, change: Setter)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.