pub fn load_characters<P: Into<PathBuf>>(ctx: &mut ggez::Context, path: P) -> ggez::GameResult<Characters> {
	let path = &path.into();
	toml::from_str(&read_string(ctx, path)?).map_err(|error|
		panic!("Failed to parse character set at: {}, because: {}", path.display(), error))
}
/// Loads a set of characters from a given path. Characters are formatted in the TOML format.
Loads a set of characters from a given path. Characters are formatted in the TOML format.
Loads a set of characters from a given path . Characters are formatted in the TOML format .
pub fn load_characters<P: Into<PathBuf>>(ctx: &mut ggez::Context, path: P) -> ggez::GameResult<Characters> {
	let path = &path.into();
	toml::from_str(&read_string(ctx, path)?).map_err(|error|
		panic!("Failed to parse character set at: {}, because: {}", path.display(), error))
}
pub fn load_characters < P : Into < PathBuf > > ( ctx : & mut ggez :: Context , path : P ) -> ggez :: GameResult < Characters > { let path = & path . into ( ) ; toml :: from_str ( & read_string ( ctx , path ) ? ) . map_err ( | error | panic ! ( " " path display ( ) error ) ) }
Loads a set of characters from a given path.
Loads a set of characters from a given path .
ctx
&mut ggez::Context
path
P
ctx
&mut ggez::Context
path
P