Example using single Stringbuffer and iterators (needs to use Rc!)
()
| 1 | /// Example using single Stringbuffer and iterators (needs to use Rc!) |
| 2 | |
| 3 | fn main() -> std::io::Result<()> { |
| 4 | for line in my_reader::BufReader::open("Cargo.toml")? { |
| 5 | println!("{}", line?.trim()); |
| 6 | } |
| 7 | |
| 8 | Ok(()) |
| 9 | } |
| 10 | |
| 11 | mod my_reader { |
| 12 | use std::{ |
nothing calls this directly
no outgoing calls
no test coverage detected