pub struct AccessibilityFrame<'a> {
pub frame_idx: u64,
pub tree: &'a A11yTree,
pub order: &'a [u64],
pub announcements: &'a [ScreenReaderAnnouncement],
pub dropped: usize,
}Expand description
The accessibility tree built for one rendered frame, handed to
Model::on_accessibility whenever the tree changed (requires
ProgramConfig::accessibility).
Fields§
§frame_idx: u64Index of the frame the tree was built from.
tree: &'a A11yTreeThe tree: the nodes widgets pushed during view, with the first
parentless node as the root unless the view set one explicitly.
order: &'a [u64]Reading order: node IDs in widget push order.
announcements: &'a [ScreenReaderAnnouncement]Screen-reader announcements derived from the diff against the
previous frame, bounded by the configured ScreenReaderPolicy.
dropped: usizeAnnouncements the policy cap dropped this frame.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for AccessibilityFrame<'a>
impl<'a> Clone for AccessibilityFrame<'a>
Source§fn clone(&self) -> AccessibilityFrame<'a>
fn clone(&self) -> AccessibilityFrame<'a>
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<'a> Copy for AccessibilityFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccessibilityFrame<'a>
impl<'a> RefUnwindSafe for AccessibilityFrame<'a>
impl<'a> Send for AccessibilityFrame<'a>
impl<'a> Sync for AccessibilityFrame<'a>
impl<'a> Unpin for AccessibilityFrame<'a>
impl<'a> UnsafeUnpin for AccessibilityFrame<'a>
impl<'a> UnwindSafe for AccessibilityFrame<'a>
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