Trait amethyst_config::Config [] [src]

pub trait Config where
    Self: Sized
{ fn load<P: AsRef<Path>>(path: P) -> Self;
fn load_no_fallback<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>;
fn write<P: AsRef<Path>>(&self, path: P) -> Result<(), ConfigError>; }

Trait implemented by the config! macro.

Required Methods

Loads a configuration structure from a file. Defaults if the file fails in any way.

Loads a configuration structure from a file.

Writes a configuration structure to a file.

Implementors