pub struct NodeStyleRule {
pub selector: NodeSelector,
pub style: NodeStyle,
}Expand description
A selector and the style to overlay on matching nodes.
Fields§
§selector: NodeSelectorPredicate used to select nodes.
style: NodeStyleStyle overlaid on selected nodes.
Implementations§
Source§impl NodeStyleRule
impl NodeStyleRule
Sourcepub fn new(selector: NodeSelector, style: NodeStyle) -> Self
pub fn new(selector: NodeSelector, style: NodeStyle) -> Self
Creates a style rule from a selector and style.
Trait Implementations§
Source§impl Clone for NodeStyleRule
impl Clone for NodeStyleRule
Source§fn clone(&self) -> NodeStyleRule
fn clone(&self) -> NodeStyleRule
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 NodeStyleRule
impl Debug for NodeStyleRule
impl Eq for NodeStyleRule
Source§impl PartialEq for NodeStyleRule
impl PartialEq for NodeStyleRule
impl StructuralPartialEq for NodeStyleRule
Auto Trait Implementations§
impl Freeze for NodeStyleRule
impl RefUnwindSafe for NodeStyleRule
impl Send for NodeStyleRule
impl Sync for NodeStyleRule
impl Unpin for NodeStyleRule
impl UnsafeUnpin for NodeStyleRule
impl UnwindSafe for NodeStyleRule
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