pub struct Rule {
pub at: Vec<&'static str>,
pub selector: String,
pub decls: Vec<(&'static str, String)>,
}Expand description
One utility’s CSS: where it sits, what it selects, and what it declares.
docs/104 §104.4 takes
Tailwind’s design system and refuses its delivery mechanism. This is that design system, as
a total function from a name to a rule — which is the same shape Tailwind’s own compiler has,
and the reason its output can be the oracle.
Fields§
§at: Vec<&'static str>The at-rules this sits inside, outermost first: @media (width >= 48rem).
selector: StringThe selector, with the class name escaped as CSS requires.
decls: Vec<(&'static str, String)>The declarations, in the order they are written.
Trait Implementations§
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more