pub trait FromFile {
// Provided methods
fn from_file<P: AsRef<Path>, E>(path: P) -> Result<Self, Error>
where Self: Sized + FromStr<Err = E>,
E: ChainedError { ... }
fn string_from_file<P: AsRef<Path>>(path: P) -> Result<String, Error> { ... }
}
Provided Methods§
fn from_file<P: AsRef<Path>, E>(path: P) -> Result<Self, Error>
fn string_from_file<P: AsRef<Path>>(path: P) -> Result<String, Error>
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.