pub trait FromRead: Sized {
// Required method
fn from_read<R>(r: R) -> Result<Self, ProcError>
where R: Read;
// Provided method
fn from_file<P>(path: P) -> Result<Self, ProcError>
where P: AsRef<Path> { ... }
}
Expand description
Types which can be parsed from a Read implementation.
Required Methods§
Provided 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.