Expand description
The ByteString
struct.
Structs§
- Byte
String - Encapsulates the IDL
ByteString
type. - DOMString
- A DOMString.
- USVString
- A string that is constructed from a UCS-2 buffer by replacing invalid code points with the replacement character.
Functions§
- is_
token - Returns whether
s
is atoken
, as defined by RFC 2616. - serialize_
jsval_ to_ json_ utf8 - Because this converts to a DOMString it becomes UTF-8 encoded which is closer to the spec definition of https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-json-bytes but we generally do not operate on anything that is truly a WTF-16 string.