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§
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.