pub struct Stylesheet {
pub id: &'static str,
pub css: &'static str,
pub per_class: Option<&'static [&'static str]>,
pub scripts: &'static [(&'static str, &'static [&'static str])],
}Expand description
A compiled stylesheet.
Fields§
§id: &'static strContent hash (stable across builds for identical CSS).
css: &'static strMinified CSS text.
per_class: Option<&'static [&'static str]>Some for stylesheets sent per page (the Tailwind build with the
CSS imported into it, global_css! sheets, UI components): each page
gets only the rules for the classes it renders, plus those for the
listed classes (added by scripts, outside the view tree). None:
sent whole.
scripts: &'static [(&'static str, &'static [&'static str])]Classes that scripts add, by script ("client/home.js",
"assets/js/site.js", a public/ path): sent with a page only when
it loads that script.
Trait Implementations§
Source§impl Debug for Stylesheet
impl Debug for Stylesheet
impl Eq for Stylesheet
Source§impl PartialEq for Stylesheet
impl PartialEq for Stylesheet
impl StructuralPartialEq for Stylesheet
Auto Trait Implementations§
impl Forget for Stylesheet
impl Freeze for Stylesheet
impl Move for Stylesheet
impl RefUnwindSafe for Stylesheet
impl Send for Stylesheet
impl Sync for Stylesheet
impl Unpin for Stylesheet
impl UnsafeUnpin for Stylesheet
impl UnwindSafe for Stylesheet
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.