pub enum A11yCapability {
Opaque,
Partial,
Full,
}Expand description
What a content surface can expose to the accessibility tree. The single vocabulary all engines/surfaces speak (invariant 3). Ordered worst-to-best so capability can be compared / clamped.
Variants§
Opaque
No semantic content the host can expose — a raw GPU surface or an opaque
system WebView. The host surfaces this honestly (a labelled region with
“contents not inspectable”), never as if it were Self::Full. Default
for crate::SurfaceEngine (frame-streaming surfaces are opaque until
they bridge their content).
Partial
Some structure available — e.g. a bridged WebView exposing a DOM projection (links / headings / text) but not full ARIA, or a partially-modelled document.
Full
A complete semantic tree (headings, links, roles, text). Default for
document crate::Engines: their crate::EngineDocument blocks are
the semantic content, so they are accessible by construction.
Implementations§
Source§impl A11yCapability
impl A11yCapability
Sourcepub fn is_inspectable(self) -> bool
pub fn is_inspectable(self) -> bool
Whether the host can build any semantic accessibility nodes from this
surface (everything but Self::Opaque).
Trait Implementations§
Source§impl Clone for A11yCapability
impl Clone for A11yCapability
Source§fn clone(&self) -> A11yCapability
fn clone(&self) -> A11yCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for A11yCapability
Source§impl Debug for A11yCapability
impl Debug for A11yCapability
Source§impl<'de> Deserialize<'de> for A11yCapability
impl<'de> Deserialize<'de> for A11yCapability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for A11yCapability
Source§impl Ord for A11yCapability
impl Ord for A11yCapability
Source§fn cmp(&self, other: &A11yCapability) -> Ordering
fn cmp(&self, other: &A11yCapability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for A11yCapability
impl PartialEq for A11yCapability
Source§impl PartialOrd for A11yCapability
impl PartialOrd for A11yCapability
Source§impl Serialize for A11yCapability
impl Serialize for A11yCapability
impl StructuralPartialEq for A11yCapability
Auto Trait Implementations§
impl Freeze for A11yCapability
impl RefUnwindSafe for A11yCapability
impl Send for A11yCapability
impl Sync for A11yCapability
impl Unpin for A11yCapability
impl UnsafeUnpin for A11yCapability
impl UnwindSafe for A11yCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.