[][src]Struct evolution::Config

struct Config {
    fullscreen: bool,
    window_size: (f32, f32),
    show_fps: bool,
    boundary_padding: f32,
    fish: FishConfig,
    food: FoodConfig,
    poison: FoodConfig,
}

The configuration structure that is read and deserialized from config.ron

Fields

fullscreen: bool

Whether or not the window is fullscreen

window_size: (f32, f32)

If the window is not fullscreen, the size of the window will be specified based on the provided (width, height)

show_fps: bool

Whether or not the current FPS should be displayed in the simulation window

boundary_padding: f32

The thickness of the padding boundary for the fish around the window in pixels

fish: FishConfig

The configuration pertaining to the fish

food: FoodConfig

The configuration pertaining to the food

poison: FoodConfig

The configuration pertaining to the poison

Trait Implementations

impl Debug for Config[src]

impl<'de> Deserialize<'de> for Config[src]

fn deserialize_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,