precious

Types

Values

pub fn enforce(
  str: String,
  profile: profile.Profile,
) -> Result(String, profile.EnforcementError)

Enforcement entails applying all of the rules specified for a particular string class, or profile thereof, to a single input string, for the purpose of checking whether the string conforms to all of the rules and thus determining if the string can be used in a given protocol slot. (RFC 8264, Section 3)

pub fn nickname() -> profile.Profile

PRECIS Representing Nicknames, RFC 8266 A nickname is a memorable, human-friendly name in a communications context or to set such a name for another entity such as a device, account, contact, or website. Such names are variously called “nicknames” (e.g., in chat room applications), “display names” (e.g., in Internet mail), or “petnames”.

pub fn unicode_version() -> String

Get the Unicode version that this library is based on.

pub fn username_case_mapped() -> profile.Profile

PRECIS Representing Usernames and Passwords, RFC 8265 Lowercased.

pub fn username_case_preserved() -> profile.Profile

PRECIS Representing Usernames and Passwords, RFC 8265 Not lowercase, not case-preserving, and not case-mapped.

Search Document