/// Gets the CPU clock frequency in MHz. /// /// The underlying implementation uses several methods to discover CPU /// speed, including direct measurement. If all these methods fail, function /// returns `None`. pub fn clock_frequency() -> Option { // ... }
#[derive(RustcDecodable, RustcEncodable)] struct Movie { title: String, pub_year: usize, } let mut reader = Reader::from_file(path).unwrap(); for row in reader.decode() { let movie: Movie = row.unwrap(); println!("{}", movie.title); }