Module utils

Source
Expand description

Define some utility functions for quickly doing things.

Modules§

buffer
Defines the buffer containing the CSS generated.
color
Define some color manipulation functions.
shadow
Shadow parsing utility functions.
spacing
Spacing utility functions.
value_matchers
Define some utility functions used to detect the CSS type of a CSS value.

Structs§

SplitIgnoreArbitrary
An iterator ignoring values wrapped in parenthesis and brackets.

Traits§

Pattern
While https://github.com/rust-lang/rust/issues/27721 is pending we need to define our own minimal Pattern trait.

Functions§

check_selectors
Return the list of errors encountered when parsing a list of selectors
format_negative
Quickly format a negative value (returns “-” if true or “” otherwise).
sort_selectors
Sort a list of selectors (separated by spaces) according to encre-css rules.
split_ignore_arbitrary
Split a value while avoiding arbitrary values/variants (wrapped in brackets) from being split.
OSZAR »