pub struct Stylesheet {
pub id: &'static str,
pub css: &'static str,
pub per_class: Option<&'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 utility stylesheets (Tailwind): each page gets only the
rules for the classes it renders, plus those for the listed classes
(used by code outside the view tree). None: sent whole.
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 Freeze 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.