pub fn check_data_file(filename: &str) -> Result<()> {
    let f = try!(File::open(filename).map_err(SvmErr::IoError));
    let file = BufReader::new(&f);
    for line in file.lines() {
        let line_str = try!(line.map_err(SvmErr::IoError));
        try!(parse_line(&line_str));
    }
    Ok(())
}
/// Check whether a file is in the correct data format.
Check whether a file is in the correct data format.
Check whether a file is in the correct data format .
pub fn check_data_file(filename: &str) -> Result<()> {
    let f = try!(File::open(filename).map_err(SvmErr::IoError));
    let file = BufReader::new(&f);
    for line in file.lines() {
        let line_str = try!(line.map_err(SvmErr::IoError));
        try!(parse_line(&line_str));
    }
    Ok(())
}
pub fn check_data_file ( filename : & str ) -> Result < ( ) > { let f = try ! ( File open ( filename ) map_err ( SvmErr IoError ) ) ; let file = BufReader :: new ( & f ) ; for line in file . lines ( ) { let line_str = try ! ( line map_err ( SvmErr IoError ) ) ; try ! ( parse_line ( line_str ) ) ; } Ok ( ( ) ) }
Check whether a file is in the correct data format.
Check whether a file is in the correct data format .
filename
&str
filename
&str