pub fn parse_struct_tag(raw: &str) -> Result<StructTagData>
Expand description

Parses a struct tag.

Example

use struct_tag::*;
let id: StructTagData = struct_tag::parse_struct_tag("0x1::Errors::Errors").unwrap();
assert_eq!("0x1::Errors::Errors", id.to_string());