pub fn open(input: &dyn AsRef<Path>) -> Result<(Box<dyn Read>, usize)>
Expand description
Opens file or standard input "-"
as buffered bytes reader of known count.
- For a file, the count is determined by
metadata()
. - For standard input, the bytes are completely read in and counted.