pub struct Css {
pub stylesheets: Vec<Stylesheet>,
}
Expand description
Css stylesheet - contains a parsed CSS stylesheet in “rule blocks”, i.e. blocks of key-value pairs associated with a selector path.
Fields§
§stylesheets: Vec<Stylesheet>
One CSS stylesheet can hold more than one sub-stylesheet:
For example, when overriding native styles, the .sort_by_specificy()
function
should not mix the two stylesheets during sorting.
Implementations§
Source§impl Css
impl Css
pub fn append(&mut self, css: Self)
pub fn append_stylesheet(&mut self, styles: Stylesheet)
pub fn sort_by_specificity(&mut self)
pub fn rules<'a>(&'a self) -> RuleIterator<'a> ⓘ
Trait Implementations§
Source§impl PartialOrd for Css
impl PartialOrd for Css
impl StructuralPartialEq for Css
Auto Trait Implementations§
impl Freeze for Css
impl RefUnwindSafe for Css
impl Send for Css
impl Sync for Css
impl Unpin for Css
impl UnwindSafe for Css
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)