pub struct DocumentA11yProjection { /* private fields */ }Expand description
Renderer-neutral semantic snapshot of the current retained document.
revision increases whenever geometry, state, or actions observable
through this projection change. A semantic object’s local ID remains stable
across revisions for the lifetime of that object; the revision instead
scopes an observation and its action requests, allowing an engine to reject
stale host observations.
Implementations§
Source§impl DocumentA11yProjection
impl DocumentA11yProjection
pub fn new( revision: u64, support: DocumentA11ySupport, root: DocumentA11yNodeId, nodes: Vec<DocumentA11yNode>, ) -> Self
pub const fn revision(&self) -> u64
pub fn support(&self) -> &DocumentA11ySupport
pub const fn root(&self) -> DocumentA11yNodeId
pub fn nodes(&self) -> &[DocumentA11yNode]
pub fn node(&self, id: DocumentA11yNodeId) -> Option<&DocumentA11yNode>
Trait Implementations§
Source§impl Clone for DocumentA11yProjection
impl Clone for DocumentA11yProjection
Source§impl Debug for DocumentA11yProjection
impl Debug for DocumentA11yProjection
Source§impl<'de> Deserialize<'de> for DocumentA11yProjection
impl<'de> Deserialize<'de> for DocumentA11yProjection
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentA11yProjection
impl PartialEq for DocumentA11yProjection
Source§impl Serialize for DocumentA11yProjection
impl Serialize for DocumentA11yProjection
impl StructuralPartialEq for DocumentA11yProjection
Auto Trait Implementations§
impl Freeze for DocumentA11yProjection
impl RefUnwindSafe for DocumentA11yProjection
impl Send for DocumentA11yProjection
impl Sync for DocumentA11yProjection
impl Unpin for DocumentA11yProjection
impl UnsafeUnpin for DocumentA11yProjection
impl UnwindSafe for DocumentA11yProjection
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