fn load(file: &str) -> Result<JsonConfig<'a>> {
        let mut content = String::new();
        let file        = try!(File::open(file));
        let mut breader = BufReader::new(file);
        
        try!(breader.read_to_string(&mut content));
        
        Ok(try!(json::decode(&content)))
    }
/// Load configuration from a given file.
Load configuration from a given file.
Load configuration from a given file .
fn load(file: &str) -> Result<JsonConfig<'a>> {
        let mut content = String::new();
        let file        = try!(File::open(file));
        let mut breader = BufReader::new(file);
        try!(breader.read_to_string(&mut content));
        Ok(try!(json::decode(&content)))
    }
fn load ( file : & str ) -> Result < JsonConfig < ' a > > { let mut content = String :: new ( ) ; let file = try ! ( File open ( file ) ) ; let mut breader = BufReader :: new ( file ) ; try ! ( breader read_to_string ( mut content ) ) ; Ok ( try ! ( json decode ( content ) ) ) }
Load configuration from a given file.
Load configuration from a given file .
file
&str
file
&str