/// Read and decode the json file into Replica Assignment map
Read and decode the json file into Replica Assignment map
Read and decode the json file into Replica Assignment map
pub fn file_decode<T: AsRef<Path>>(path: T) -> Result<Self, IoError> {
            let file_str: String = read_to_string(path)?;
            serde_json::from_str(&file_str)
                .map_err(|err| IoError::new(ErrorKind::InvalidData, format!("{}", err)))
        }
pub fn file_decode < T : AsRef < Path > > ( path : T ) -> Result < Self , IoError > { let file_str : String = read_to_string ( path ) ? ; serde_json :: from_str ( & file_str ) . map_err ( | err | IoError :: new ( ErrorKind :: InvalidData , format ! ( " " err ) ) ) }
Read and decode the json file into Replica Assignment map
Read and decode the json file into Replica Assignment map
path
T