fn src_lib() -> String {
    use std::io::{BufReader, Read};
    let mut file = BufReader::new(::std::fs::File::open("src/lib.rs").unwrap());
    let mut res = String::new();
    file.read_to_string(&mut res).unwrap();
    res
}
/// A function which reads src/lib.rs and return a String.
///
/// Note:
/// It is for benchmarking purpose where we want to remove IO.
/// In general, you don't want to return a whole String but you prefer
/// working with a Read or BufRead directly.
A function which reads src/lib.rs and return a String.
Note:
It is for benchmarking purpose where we want to remove IO.
In general, you don't want to return a whole String but you prefer
working with a Read or BufRead directly.
A function which reads src / lib . rs and return a String . Note : It is for benchmarking purpose where we want to remove IO . In general you don ' t want to return a whole String but you prefer working with a Read or BufRead directly .
fn src_lib() -> String {
    use std::io::{BufReader, Read};
    let mut file = BufReader::new(::std::fs::File::open("src/lib.rs").unwrap());
    let mut res = String::new();
    file.read_to_string(&mut res).unwrap();
    res
}
fn src_lib ( ) -> String { use std :: io :: { BufReader , Read } ; let mut file = BufReader :: new ( :: std :: fs :: File :: open ( " " ) . unwrap ( ) ) ; let mut res = String :: new ( ) ; file . read_to_string ( & mut res ) . unwrap ( ) ; res }
A function which reads src/lib.rs and return a String.
A function which reads src / lib . rs and return a String .