Skip to main content

SemanticsNode

Trait SemanticsNode 

Source
pub trait SemanticsNode: ModifierNode {
    // Provided methods
    fn merge_semantics(&self, _config: &mut SemanticsConfiguration) { ... }
    fn reach(&self) -> SemanticsReach { ... }
}
Expand description

Marker trait for semantics modifier nodes.

Semantics nodes participate in the semantics tree construction. They can add or modify semantic properties of their wrapped content for accessibility and testing purposes.

Provided Methods§

Source

fn merge_semantics(&self, _config: &mut SemanticsConfiguration)

Merges semantic properties into the provided configuration.

Source

fn reach(&self) -> SemanticsReach

Whether this node makes its subtree modal or hides it. The default merges into a fresh configuration and reads the two flags; a node that can declare neither overrides it to skip that work.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§