#[repr(C)]pub struct CssScopeRange {
pub start: usize,
pub end: usize,
}Expand description
Inclusive range of flat NodeIds describing a node’s subtree [start, end]
(end = start + estimated_total_children, since the flat arena lays subtrees
out contiguously).
Carried by CssPathSelector::Root to scope inline css to
a subtree, and is the unit of future parallel per-subtree cascading.
repr(C) for FFI / api.json codegen.
Fields§
§start: usizeFirst flat NodeId of the subtree (the owning node itself).
end: usizeLast flat NodeId of the subtree, inclusive (start for a leaf).
Implementations§
Trait Implementations§
Source§impl Clone for CssScopeRange
impl Clone for CssScopeRange
Source§fn clone(&self) -> CssScopeRange
fn clone(&self) -> CssScopeRange
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 moreimpl Copy for CssScopeRange
Source§impl Debug for CssScopeRange
impl Debug for CssScopeRange
impl Eq for CssScopeRange
Source§impl Hash for CssScopeRange
impl Hash for CssScopeRange
Source§impl Ord for CssScopeRange
impl Ord for CssScopeRange
Source§fn cmp(&self, other: &CssScopeRange) -> Ordering
fn cmp(&self, other: &CssScopeRange) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CssScopeRange
impl PartialEq for CssScopeRange
Source§impl PartialOrd for CssScopeRange
impl PartialOrd for CssScopeRange
impl StructuralPartialEq for CssScopeRange
Auto Trait Implementations§
impl Freeze for CssScopeRange
impl RefUnwindSafe for CssScopeRange
impl Send for CssScopeRange
impl Sync for CssScopeRange
impl Unpin for CssScopeRange
impl UnsafeUnpin for CssScopeRange
impl UnwindSafe for CssScopeRange
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