pub struct CssRuleBlock {
pub path: CssPath,
pub declarations: Vec<CssDeclaration>,
}
Expand description
One block of rules that applies a bunch of rules to a “path” in the style, i.e.
div#myid.myclass -> { ("justify-content", "center") }
Fields§
§path: CssPath
The css path (full selector) of the style ruleset
declarations: Vec<CssDeclaration>
"justify-content: center"
=>
CssDeclaration::Static(CssProperty::JustifyContent(LayoutJustifyContent::Center))
Implementations§
Source§impl CssRuleBlock
impl CssRuleBlock
pub const fn new(path: CssPath, declarations: Vec<CssDeclaration>) -> Self
Trait Implementations§
Source§impl Clone for CssRuleBlock
impl Clone for CssRuleBlock
Source§fn clone(&self) -> CssRuleBlock
fn clone(&self) -> CssRuleBlock
Returns a copy of the value. Read more
1.0.0 · 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 CssRuleBlock
impl Debug for CssRuleBlock
Source§impl PartialEq for CssRuleBlock
impl PartialEq for CssRuleBlock
Source§impl PartialOrd for CssRuleBlock
impl PartialOrd for CssRuleBlock
impl StructuralPartialEq for CssRuleBlock
Auto Trait Implementations§
impl Freeze for CssRuleBlock
impl RefUnwindSafe for CssRuleBlock
impl Send for CssRuleBlock
impl Sync for CssRuleBlock
impl Unpin for CssRuleBlock
impl UnwindSafe for CssRuleBlock
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
)