pub fn parse_module_id(raw: &str) -> Result<ModuleIdData, Error>
Expand description

Parses a module ID.

Example

use module_id::*;
let id: ModuleIdData = parse_module_id("0x1::Errors").unwrap();
assert_eq!("0x1::Errors", id.to_string());