Adds a word, with the given type. The type can be Type::SAFE, or a combination of Type::PROFANE,
Type::Sexual, Type::Offensive, Type::Mean, Type::Mild, Type::Moderate, and Type::Severe,
but NOT both (can’t be safe and unsafe).
Returns true iff the character is effectively whitespace. The definition of whitespace is broader
than that of Unicode, because it includes control characters and a few additional blank characters.
Trims a string to a maximum number of m’s. A budget of 5 would allow five m, or more narrower
characters, or fewer wider characters.
Trims whitespace characters from both ends of a string, according to the definition of
crate::is_whitespace.
Returns an estimate of the worst-case display width in milli-m’s (thousandths of the
the width of an m character).
Convenience method for getting the width, in m’s, of an entire string.