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]
Trait Implementations
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 Debug for Config
[src]
impl Default for Config
[src]
impl Element for Config
[src]
fn from_yaml(meta: &ConfigMeta, config: &Yaml) -> Result<Self, ConfigError>
TODO: Needs documentation!
fn to_yaml(&self, path: &Path) -> Yaml
TODO: Needs documentation!
fn set_meta(&mut self, meta: &ConfigMeta)
TODO: Needs documentation!
fn meta(&self) -> Option<ConfigMeta>
TODO: Needs documentation!
fn write_file(&self) -> Result<(), ConfigError>
TODO: Needs documentation!
fn from_string(src: &str) -> Result<Self, ConfigError>
From some string (should be used for top level elements if you want to embed the code)
fn from_file_raw<P: AsRef<Path>>(
meta: &ConfigMeta,
path: P
) -> Result<Self, ConfigError>
meta: &ConfigMeta,
path: P
) -> Result<Self, ConfigError>
From a file relative to current config
fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
From a file relative to project