pub(crate) struct NodeRareData {
pub(crate) containing_shadow_root: Option<Dom<ShadowRoot>>,
pub(crate) mutation_observers: Vec<RegisteredObserver>,
pub(crate) unique_id: Option<UniqueId>,
pub(crate) slottable_data: SlottableData,
pub(crate) ranges: WeakRangeVec,
pub(crate) child_list: MutNullableDom<NodeList>,
pub(crate) implemented_pseudo_element: Option<PseudoElement>,
}Fields§
§containing_shadow_root: Option<Dom<ShadowRoot>>The shadow root the node belongs to. This is None if the node is not in a shadow tree or if it is a ShadowRoot.
mutation_observers: Vec<RegisteredObserver>Registered observers for this node.
unique_id: Option<UniqueId>Lazily-generated Unique Id for this node.
slottable_data: SlottableData§ranges: WeakRangeVecA vector of weak references to Range instances of which the start or end containers are this node. No range should ever be found twice in this vector, even if both the start and end containers are this node.
child_list: MutNullableDom<NodeList>The live list of children return by .childNodes.
implemented_pseudo_element: Option<PseudoElement>Whether this node represents a certain implemented pseudo-element.
An implemented pseudo-element is a real element within a UA shadow tree
that will match a certain pseudo-element selector.
An example of this is the element matching the ::placeholder selector.
Trait Implementations§
Source§impl Default for NodeRareData
impl Default for NodeRareData
Source§fn default() -> NodeRareData
fn default() -> NodeRareData
Returns the “default value” for a type. Read more
Source§impl MallocSizeOf for NodeRareData
impl MallocSizeOf for NodeRareData
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl !Freeze for NodeRareData
impl !RefUnwindSafe for NodeRareData
impl !Send for NodeRareData
impl !Sync for NodeRareData
impl Unpin for NodeRareData
impl !UnwindSafe for NodeRareData
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert