struct
Rule
pub struct Rule {
pub class: String,
pub selector: String,
pub declarations: Vec<(String, String)>,
pub media: Vec<String>,
pub keyframes: Option<&'static str>,
pub font_face: Option<String>,
pub key: SortKey,
}A generated CSS rule for one class.
Fields
Methods
to_css
pub fn to_css(&self) -> StringThe rule as CSS: its selector (with variants), wrapped in any media queries.