Skip to main content

Module domstring

Module domstring 

Source

Structsยง

BytesView
DOMString
StringView
A reference to a Rust str of UTF-8 encoded bytes, used to get a Rust string from a DOMString.
TracedDOMString
This type corresponds to the DOMString type in WebIDL.

Enumsยง

DOMStringErrorType
DOMStringType ๐Ÿ”’
EncodedBytes
A type representing the underlying encoded bytes of a DOMString.

Constantsยง

ASCII_CAPITAL_A ๐Ÿ”’
ASCII_CAPITAL_Z ๐Ÿ”’
ASCII_CR ๐Ÿ”’
ASCII_END ๐Ÿ”’
ASCII_FORMFEED ๐Ÿ”’
ASCII_LOWERCASE_A ๐Ÿ”’
ASCII_LOWERCASE_Z ๐Ÿ”’
ASCII_NEWLINE ๐Ÿ”’
ASCII_SPACE ๐Ÿ”’
ASCII_TAB ๐Ÿ”’

Functionsยง

get_latin1_string_bytes ๐Ÿ”’ โš 
Return the Latin1 string bytes of the given JSString. As a garbage collection can collect this string, it must be later bound to the lifetime of a provided NoGC parameter. This function will never GC.
is_valid_floating_point_number_string
https://html.spec.whatwg.org/multipage/#valid-floating-point-number TODO(#39315): Use the validation rule from Stylo
parse_floating_point_number
https://html.spec.whatwg.org/multipage/#rules-for-parsing-floating-point-number-values