Struct amethyst_config::Config [] [src]

pub struct Config {
    pub display: DisplayConfig,
    pub logging: LoggingConfig,
    // some fields omitted
}

Fields

display: DisplayConfig

Configuration for display and graphics

logging: LoggingConfig

Configuration for output

Methods

impl Config
[src]

fn to_string(&self) -> String

Trait Implementations

impl Debug for Config
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Config
[src]

fn clone(&self) -> Config

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for Config
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl Element for Config
[src]

fn from_yaml(meta: &ConfigMeta, config: &Yaml) -> Result<Self, ConfigError>

Convert yaml element into a rust type, Raises an error if it is not the yaml element expected Read more

fn to_yaml(&self, path: &Path) -> Yaml

Converts rust type into a yaml element for writing Requires the path for external configs Read more

fn set_meta(&mut self, meta: &ConfigMeta)

Sets the meta data of a config structure, only works on config structures

fn meta(&self) -> Option<ConfigMeta>

Returns meta data if it is a config structure

fn write_file(&self) -> Result<()ConfigError>

Recursively writes to files given the configuration's current context. Read more

fn from_file_raw(meta: &ConfigMeta, path: &Path) -> Result<Self, ConfigError>

From a file relative to current config

fn from_file(path: &Path) -> Result<Self, ConfigError>

From a file relative to project