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§
Sourcefn merge_semantics(&self, _config: &mut SemanticsConfiguration)
fn merge_semantics(&self, _config: &mut SemanticsConfiguration)
Merges semantic properties into the provided configuration.
Sourcefn reach(&self) -> SemanticsReach
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".