[−][src]Trait amethyst_config::Config
Trait implemented by the config!
macro.
Required methods
fn load<P: AsRef<Path>>(path: P) -> Self
Loads a configuration structure from a file. Defaults if the file fails in any way.
fn load_no_fallback<P: AsRef<Path>>(path: P) -> Result<Self, ConfigError>
Loads a configuration structure from a file.
fn load_bytes(bytes: &[u8]) -> Result<Self, ConfigError>
Loads configuration structure from raw bytes.
fn write<P: AsRef<Path>>(&self, path: P) -> Result<(), ConfigError>
Writes a configuration structure to a file.
Implementors
impl<T> Config for T where
T: for<'a> Deserialize<'a> + Serialize + Default,
[src]
T: for<'a> Deserialize<'a> + Serialize + Default,