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, and whether what it merges can change without its semantics being invalidated. The default merges into a fresh configuration, reads the two flags and counts the node as reading live state; a node that can declare neither flag and reports only what its updates bring overrides it to skip that work.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".