Function load_game

Source
pub fn load_game(input: &str) -> Result<Game, Error>
Examples found in repository?
examples/game.rs (line 17)
12fn main() {
13    let mut json_file = File::open(env::args().nth(1).expect("Usage: act <file>"))
14        .expect("Couldn't open game file!");
15    let mut json_string = String::new();
16    json_file.read_to_string(&mut json_string).unwrap();
17    let mut game = load_game(&json_string).unwrap();
18    game.play();
19}