pub struct StyleSheet {
pub rules: Vec<CssRule>,
}Expand description
A parsed stylesheet (list of rules).
Fields§
§rules: Vec<CssRule>Implementations§
Source§impl StyleSheet
impl StyleSheet
Sourcepub fn declarations_for_class(&self, class: &str) -> Vec<Declaration>
pub fn declarations_for_class(&self, class: &str) -> Vec<Declaration>
Query all declarations matching a given class name.
Sourcepub fn declarations_for_tag(&self, tag: &str) -> Vec<Declaration>
pub fn declarations_for_tag(&self, tag: &str) -> Vec<Declaration>
Query all declarations matching a given tag name.
Trait Implementations§
Source§impl Clone for StyleSheet
impl Clone for StyleSheet
Source§fn clone(&self) -> StyleSheet
fn clone(&self) -> StyleSheet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleSheet
impl Debug for StyleSheet
Source§impl Default for StyleSheet
impl Default for StyleSheet
Source§fn default() -> StyleSheet
fn default() -> StyleSheet
Returns the “default value” for a type. Read more
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