nmap_analyze

Trait FromFile

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

Source

fn from_file<P: AsRef<Path>, E>(path: P) -> Result<Self, Error>
where Self: Sized + FromStr<Err = E>, E: ChainedError,

Source

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.

Implementors§