Crate valence::ident

source ·
Expand description


A library for parsing Minecraft’s resource locations (also known as “resource identifiers” and “namespaced IDs”)


  • Creates a new Ident at compile time from a string literal. A compile error is raised if the string is not a valid resource identifier.


  • A wrapper around a string type S which guarantees the wrapped string is a valid resource identifier.
  • The error type created when an Ident cannot be parsed from a string. Contains the string that failed to parse.