#[non_exhaustive]pub struct ItemA11yDecorations {
pub parent: Option<A11yNode>,
pub adopted: Vec<A11yNode>,
pub relations: Vec<(A11yNode, A11yRelation, A11yNode)>,
pub live: Option<Live>,
pub landmark: Option<Role>,
pub categories: Vec<A11yCategory>,
}Expand description
The per-item slice of the logical accessibility tree, harvested by
Scene::take and re-attached by
Scene::restore.
Both directions of every edge, because a removal cuts both — see the module docs. A restore re-attaches only the edges whose other endpoint is still alive; an edge to something that has since been removed is dropped, because re-inserting it would name a node the AT walker cannot resolve.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: Option<A11yNode>The node this item was AT-parented under (Scene::set_a11y_parent).
adopted: Vec<A11yNode>Nodes that were AT-parented under this item and survived its
removal. remove re-roots them at the view root; a restore re-adopts
each one that still exists.
relations: Vec<(A11yNode, A11yRelation, A11yNode)>Every relation with this item at either endpoint, in declaration
order. A relation between two removed items is recorded once, on the
from endpoint’s salvage.
live: Option<Live>Live-region politeness (Scene::set_a11y_live).
landmark: Option<Role>Landmark role (Scene::set_a11y_landmark).
categories: Vec<A11yCategory>Rotor / quick-nav categories (Scene::set_a11y_categories).
Implementations§
Trait Implementations§
Source§impl Debug for ItemA11yDecorations
impl Debug for ItemA11yDecorations
Source§impl Default for ItemA11yDecorations
impl Default for ItemA11yDecorations
Source§fn default() -> ItemA11yDecorations
fn default() -> ItemA11yDecorations
Auto Trait Implementations§
impl Freeze for ItemA11yDecorations
impl RefUnwindSafe for ItemA11yDecorations
impl Send for ItemA11yDecorations
impl Sync for ItemA11yDecorations
impl Unpin for ItemA11yDecorations
impl UnsafeUnpin for ItemA11yDecorations
impl UnwindSafe for ItemA11yDecorations
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 more