Module util

Source
Expand description

Miscellaneous.

Structs§

Arena
Cell
A mutable memory location.
CharacterReader
CharacterReader may be used for iterating characters from left-to-right in a string with miscellaneous operation methods.
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
HashSet
A hash set implemented as a HashMap where the value is ().
NodeAsKey
Wrapper for pointer types that implements by-address comparison.
Rc
A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
RefCell
A mutable memory location with dynamically checked borrow rules
Weak
Weak is a version of Rc that holds a non-owning reference to the managed allocation.

Functions§

count_first_whitespace_characters
Counts the first whitespace characters of a string.
css_color_constant_to_int
Converts a CSS color constant into an integer.
decrease_last_offset
Decreases the last offset of a range without ever going behind the first offset.
default
escape_xml
Escapes XML special characters.
unescape_xml
Unescapes XML entities conforming to HTML entities.