Expand description
Re-exports§
pub use crate::Result;
Macros§
Structs§
- Color
- Color in rgba format, where {red,green,blue} in 0..255, alpha in 0.0..1.0
- Emoji
- A specific emoji.
- NAMED_
COLORS - List of CSS3 named colors from http://www.w3.org/TR/css3-color.
Enums§
- Text
Error - Error of text progress
Functions§
- capitalize_
first_ letter - capitalize first letter
- dedent
- Removes common leading whitespace from each line.
- dedent_
less_ than - Removes at most n leading whitespace from each line
- indent
- Adds spaces to each non-empty line.
- indent_
count - Calculate how much space the first line has
- indent_
with - Adds prefix to each non-empty line.
- parse_
color - Named: eg.
slateblue
#fff
#ff0011
rgba(255, 128, 12, 0.5)
- parse_
emoji - Parses the given Emoji name into a unicode Emoji.
- slugify
- unescape
- Takes in a string with backslash escapes written out with literal backslash characters and converts it to a string with the proper escaped characters.
- unescape_
dec_ chars - unescape \u{xx xx xx}
- unescape_
hex_ chars - unescape \U{xx xx xx}
- unescape_
only - unescape_only
- unescape_
unchecked ⚠ - unchecked version of unescape
- unescape_
utf8 - unescape_utf8
- url_
decode - url_decode
- url_
encode - url_encode
Type Aliases§
- Result
- Result of text progress