pub trait FromFilewhere
Self: Sized,{
// Required method
fn from_file<P>(path: P) -> Result<Self>
where P: AsRef<Path>;
}
Expand description
A trait to create an object from 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.