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 π
- External
Caller π - Internal
Caller π
EnumsΒ§
- Punycode
Encode πError
ConstantsΒ§
TraitsΒ§
- Punycode
Caller π - Marker for internal vs. external caller to retain old API behavior while tweaking behavior for internal callers.
- Punycode
Code πUnit
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