pub fn reader(path: impl AsRef<Path>) -> Reader ⓘ
Expand description
Create an object to read from a file.
The path
argument specifies the path to the file to read from. It may be
either a Path
, a string, or any other type that can be converted (using
AsRef
) to a Path
. The file must already exist.
Panics if there is no file at path
, or the file cannot be opened.