MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / open

Method open

0d_files/rust/bufread_lines.rs:25–30  ·  view source on GitHub ↗
(path: impl AsRef<std::path::Path>)

Source from the content-addressed store, hash-verified

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,

Callers 1

thumbnails.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected