Holds a CSS rule which can either be a standard QualifiedRule, an AtRule, or an InvalidRule if there was a parse error.
More...
#include "donner/css/Rule.h"
|
| | Rule (Type &&value) |
| | Construct a new rule object from any type within the Type variant.
|
|
| ~Rule ()=default |
| | Destructor.
|
|
| Rule (const Rule &other)=default |
| | Copy constructor.
|
|
| Rule (Rule &&other) noexcept=default |
| | Move constructor.
|
|
Rule & | operator= (const Rule &other)=default |
| | Copy assignment operator.
|
|
Rule & | operator= (Rule &&other) noexcept=default |
| | Move assignment operator.
|
|
bool | operator== (const Rule &other) const =default |
| | Equality operator.
|
|
|
std::ostream & | operator<< (std::ostream &os, const Rule &rule) |
| | Ostream output operator.
|
Holds a CSS rule which can either be a standard QualifiedRule, an AtRule, or an InvalidRule if there was a parse error.
Examples:
- QualifiedRule: a > b { color: red }
- AtRule: @media (min-width: 600px) { a > b { color: red } }
- InvalidRule, in this case since @charset needs to end with a semicolon: @charset \"123\\"
◆ Rule()
| donner::css::Rule::Rule |
( |
Type && | value | ) |
|
|
inline |
Construct a new rule object from any type within the Type variant.
- Parameters
-
The documentation for this struct was generated from the following file: