fn from_chainspec_path<P: AsRef<Path>>(path: P) -> Result<Self, Error> {
        let bytes = utils::read_file(path.as_ref().join(&CHAINSPEC_NAME))
            .map_err(Error::LoadUpgradePoint)?;
        Ok(toml::from_slice(&bytes)?)
    }
/// Parses a chainspec file at the given path as an `UpgradePoint`.
Parses a chainspec file at the given path as an `UpgradePoint`.
Parses a chainspec file at the given path as an ` UpgradePoint ` .
fn from_chainspec_path<P: AsRef<Path>>(path: P) -> Result<Self, Error> {
        let bytes = utils::read_file(path.as_ref().join(&CHAINSPEC_NAME))
            .map_err(Error::LoadUpgradePoint)?;
        Ok(toml::from_slice(&bytes)?)
    }
fn from_chainspec_path < P : AsRef < Path > > ( path : P ) -> Result < Self , Error > { let bytes = utils :: read_file ( path . as_ref ( ) . join ( & CHAINSPEC_NAME ) ) . map_err ( Error :: LoadUpgradePoint ) ? ; Ok ( toml :: from_slice ( & bytes ) ? ) }
Parses a chainspec file at the given path as an `UpgradePoint`.
Parses a chainspec file at the given path as an ` UpgradePoint ` .
path
P
path
P