Trait amethyst::prelude::Config[][src]

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

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