Type Definition procss::ast::TreeRuleset
source · Expand description
A nested recursive block, ala popular CSS tools and the CSS nesting proposal.
div {
color: green;
&#my_elem {
color: red;
}
.sub_elem {
color: purple;
}
}Implementations
sourceimpl<'a> TreeRuleset<'a>
impl<'a> TreeRuleset<'a>
sourcepub fn flatten_tree(&self) -> Vec<FlatRuleset<'a>> ⓘ
pub fn flatten_tree(&self) -> Vec<FlatRuleset<'a>> ⓘ
Flatten into a FlatRuleset, replacing this struct’s inner TreeRule
recursive type with a regular Rule, removing arbitrary nesting of
SelectorRuleset variants.