Trait amethyst::prelude::Config [−]
Trait implemented by the config!
macro.
Required methods
pub fn load<P>(path: P) -> Result<Self, ConfigError> where
P: AsRef<Path>,
P: AsRef<Path>,
Loads a configuration structure from a file.
pub fn load_bytes(bytes: &[u8]) -> Result<Self, ConfigError>
Loads configuration structure from raw bytes.
pub fn write<P>(&self, path: P) -> Result<(), ConfigError> where
P: AsRef<Path>,
P: AsRef<Path>,
Writes a configuration structure to a file.
Provided methods
pub fn load_no_fallback<P>(path: P) -> Result<Self, ConfigError> where
P: AsRef<Path>,
P: AsRef<Path>,
👎 Deprecated:
use load
instead
Loads a configuration structure from a file.
Implementors
impl<T> Config for T where
T: for<'a> Deserialize<'a> + Serialize,
T: for<'a> Deserialize<'a> + Serialize,