Module punycode

Source
Expand description

Punycode (RFC 3492) implementation.

Since Punycode fundamentally works on unicode code points, encode and decode take and return slices and vectors of char. encode_str and decode_to_string provide convenience wrappers that convert from and to Rust’s UTF-8 based str and String types.

StructsΒ§

Decode πŸ”’
Decoder πŸ”’
ExternalCaller πŸ”’
InternalCaller πŸ”’

EnumsΒ§

PunycodeEncodeError πŸ”’

ConstantsΒ§

BASE πŸ”’
DAMP πŸ”’
INITIAL_BIAS πŸ”’
INITIAL_N πŸ”’
SKEW πŸ”’
T_MAX πŸ”’
T_MIN πŸ”’

TraitsΒ§

PunycodeCaller πŸ”’
Marker for internal vs. external caller to retain old API behavior while tweaking behavior for internal callers.
PunycodeCodeUnit πŸ”’

FunctionsΒ§

adapt πŸ”’
decode
Convert Punycode to Unicode.
decode_to_string
Convert Punycode to an Unicode String.
encode
Convert Unicode to Punycode.
encode_into πŸ”’
encode_str
Convert an Unicode str to Punycode.
value_to_digit πŸ”’