MCPcopy Index your code
hub / github.com/bedroombuilds/python2rust / read_line

Method read_line

0d_files/rust/bufread_lines.rs:32–42  ·  view source on GitHub ↗
(
            &mut self,
            buffer: &'buf mut String,
        )

Source from the content-addressed store, hash-verified

30 }
31
32 pub fn read_line<'buf>(
33 &mut self,
34 buffer: &'buf mut String,
35 ) -> Option<io::Result<&'buf mut String>> {
36 buffer.clear();
37
38 self.reader
39 .read_line(buffer)
40 .map(|u| if u == 0 { None } else { Some(buffer) })
41 .transpose()
42 }
43 }
44}

Callers 8

nextMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
handle_clientFunction · 0.80
mainFunction · 0.80
handle_clientFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected