/// Read a `Spec` from a TOML file
Read a `Spec` from a TOML file
Read a ` Spec ` from a TOML file
pub fn from_source(source: &Source) -> anyhow::Result<Self> {
        let toml_buf;
        let toml_string: &str = match source {
            Source::Path(p) => {
                toml_buf = read_file_to_string(p)?;
                &toml_buf
            }
            Source::Str { spec, .. } => spec,
        };
        parse_toml(toml_string)
    }
pub fn from_source ( source : & Source ) -> anyhow :: Result < Self > { let toml_buf ; let toml_string : & str = match source { Source :: Path ( p ) => { toml_buf = read_file_to_string ( p ) ? ; & toml_buf } Source :: Str { spec , .. } => spec , } ; parse_toml ( toml_string ) }
Read a `Spec` from a TOML file
Read a ` Spec ` from a TOML file
source
&Source