pub struct Stylesheet {
pub rules: Vec<Rule>,
}Fields§
§rules: Vec<Rule>Implementations§
Source§impl Stylesheet
impl Stylesheet
Sourcepub fn resolve(
&self,
target: &Node<'_>,
ancestors: &[Node<'_>],
prev_siblings: &[Node<'_>],
state: Option<PseudoClass>,
) -> ResolvedStyle
pub fn resolve( &self, target: &Node<'_>, ancestors: &[Node<'_>], prev_siblings: &[Node<'_>], state: Option<PseudoClass>, ) -> ResolvedStyle
Resolve every property that targets target given its ancestors
(root → parent, exclusive of target) and prev_siblings (oldest
→ immediately preceding sibling, exclusive of target). state is
the pseudo-class active on target.
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
Source§impl PartialEq for Stylesheet
impl PartialEq for Stylesheet
Source§fn eq(&self, other: &Stylesheet) -> bool
fn eq(&self, other: &Stylesheet) -> bool
Tests for
self and other values to be equal, and is used by ==.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