struct AccessibilityUpdate {
changed_nodes: FxHashSet<NodeId>,
tree_changes: FxHashMap<NodeId, TreeChange>,
rooted_nodes: Option<FxHashSet<OpaqueNode>>,
}Expand description
Changes which have occurred during the current update.
Fields§
§changed_nodes: FxHashSet<NodeId>Nodes whose internal data has changed within the current update.
tree_changes: FxHashMap<NodeId, TreeChange>Nodes that changed their relation to the tree within the current update.
rooted_nodes: Option<FxHashSet<OpaqueNode>>Nodes which were removed from the DOM tree since the last reflow, which were rooted in
[AccessibilityData]. Only set if [pref::expensive_accessibility_test_assertions_enabled]
is set.
Implementations§
Source§impl AccessibilityUpdate
impl AccessibilityUpdate
fn new(rooted_nodes: Option<FxHashSet<OpaqueNode>>) -> Self
fn add(&mut self, node: &mut AccessibilityNode)
fn set_tree_state_change(&mut self, node_id: NodeId, change: TreeChange)
Sourcefn finalize(self, tree: &mut AccessibilityTree) -> Option<TreeUpdate>
fn finalize(self, tree: &mut AccessibilityTree) -> Option<TreeUpdate>
Consume this AccessibilityUpdate, producing an accesskit::TreeUpdate if there have
been any changes to tree.
This will pass self into AccessibilityTree::remove_stale_nodes() to consume
Self::tree_changes.
Auto Trait Implementations§
impl Freeze for AccessibilityUpdate
impl RefUnwindSafe for AccessibilityUpdate
impl Send for AccessibilityUpdate
impl Sync for AccessibilityUpdate
impl Unpin for AccessibilityUpdate
impl UnsafeUnpin for AccessibilityUpdate
impl UnwindSafe for AccessibilityUpdate
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