(path: impl AsRef<std::path::Path>)
| 23 | |
| 24 | impl BufReader { |
| 25 | pub fn open(path: impl AsRef<std::path::Path>) -> io::Result<Self> { |
| 26 | let file = File::open(path)?; |
| 27 | let reader = io::BufReader::new(file); |
| 28 | |
| 29 | Ok(Self { reader }) |
| 30 | } |
| 31 | |
| 32 | pub fn read_line<'buf>( |
| 33 | &mut self, |