pub struct BlockContents {
pub decls: Vec<Declaration>,
pub rules: Vec<Rule>,
}Expand description
Result of consume_a_block / consume_a_blocks_contents. Combines
a list of declarations (possibly empty) and a list of child rules.
Note: when consume_a_blocks_contents returns, the declarations are
always empty — any pending decls have been flushed into rules as
Rule::Declarations variants (§5.5.5 L2514-2562). The decls
field is kept for forward-compatibility with future CSSOM
integration that may want a separate declaration list.
Fields§
§decls: Vec<Declaration>§rules: Vec<Rule>Trait Implementations§
Source§impl Clone for BlockContents
impl Clone for BlockContents
Source§fn clone(&self) -> BlockContents
fn clone(&self) -> BlockContents
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 BlockContents
impl Debug for BlockContents
Source§impl Default for BlockContents
impl Default for BlockContents
Source§fn default() -> BlockContents
fn default() -> BlockContents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockContents
impl RefUnwindSafe for BlockContents
impl Send for BlockContents
impl Sync for BlockContents
impl Unpin for BlockContents
impl UnsafeUnpin for BlockContents
impl UnwindSafe for BlockContents
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