pub trait BuildModifierNode:
Any
+ Send
+ Sync {
// Provided methods
fn apply(&self, _runtime: &mut TesseraRuntime) { ... }
fn materialize(
&self,
_context: &mut ModifierBuildContext,
) -> Option<Modifier> { ... }
fn nested_scroll_connection(&self) -> Option<NestedScrollConnection> { ... }
}Expand description
A node-local build modifier.
Provided Methods§
Sourcefn apply(&self, _runtime: &mut TesseraRuntime)
fn apply(&self, _runtime: &mut TesseraRuntime)
Applies build-time effects to the current component node.
Sourcefn materialize(&self, _context: &mut ModifierBuildContext) -> Option<Modifier>
fn materialize(&self, _context: &mut ModifierBuildContext) -> Option<Modifier>
Expands a stateful modifier at attachment time.
Construct ordinary modifier data here. The context binds node state and frame subscriptions to this capability in its owning node.
Sourcefn nested_scroll_connection(&self) -> Option<NestedScrollConnection>
fn nested_scroll_connection(&self) -> Option<NestedScrollConnection>
Returns this node’s nested scroll attachment, when present.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".