#[repr(C)]pub struct CssWithNodeId {
pub node_id: usize,
pub css: Css,
}Expand description
CSS stylesheet associated with a specific node ID in the flat arena.
In the tree DOM, each node carries its own css field. In the flat arena,
we record which node a stylesheet scopes to (e.g. for <style> tags
in different parts of the document).
Fields§
§node_id: usize1-based encoded NodeId (0 = root / global scope).
css: CssThe CSS stylesheet.
Trait Implementations§
Source§impl Clone for CssWithNodeId
impl Clone for CssWithNodeId
Source§fn clone(&self) -> CssWithNodeId
fn clone(&self) -> CssWithNodeId
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 CssWithNodeId
impl Debug for CssWithNodeId
Source§impl Extend<CssWithNodeId> for CssWithNodeIdVec
impl Extend<CssWithNodeId> for CssWithNodeIdVec
Source§fn extend<T: IntoIterator<Item = CssWithNodeId>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = CssWithNodeId>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<CssWithNodeId> for CssWithNodeIdVec
impl FromIterator<CssWithNodeId> for CssWithNodeIdVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssWithNodeId>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssWithNodeId>,
Creates a value from an iterator. Read more
Source§impl PartialEq for CssWithNodeId
impl PartialEq for CssWithNodeId
Source§fn eq(&self, other: &CssWithNodeId) -> bool
fn eq(&self, other: &CssWithNodeId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CssWithNodeId
impl PartialOrd for CssWithNodeId
impl StructuralPartialEq for CssWithNodeId
Auto Trait Implementations§
impl Freeze for CssWithNodeId
impl RefUnwindSafe for CssWithNodeId
impl Send for CssWithNodeId
impl Sync for CssWithNodeId
impl Unpin for CssWithNodeId
impl UnsafeUnpin for CssWithNodeId
impl UnwindSafe for CssWithNodeId
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