StdReader

Trait StdReader 

Source
pub trait StdReader: Reader {
    // Required method
    fn new<P: AsRef<Path>>(path: P) -> Result<Self>
       where Self: Sized;
}
Available on crate feature std only.
Expand description

Expands on the Reader trait to include creating a file

Required Methods§

Source

fn new<P: AsRef<Path>>(path: P) -> Result<Self>
where Self: Sized,

Creates a new file reader from a file path

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§