Trait from_as::FromFile

source ·
pub trait FromFile<RHS = Self> {
    type Error: Error;

    // Required method
    fn from_file<P>(path: P) -> Result<RHS, Self::Error>
       where P: AsRef<Path>,
             Self: for<'de> Deserialize<'de>;
}

Required Associated Types§

Required Methods§

source

fn from_file<P>(path: P) -> Result<RHS, Self::Error>where P: AsRef<Path>, Self: for<'de> Deserialize<'de>,

Implementors§