Trait FromFile

Source
pub trait FromFile
where 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§

Source

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

Create an object from a file.

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§