Skip to main content

BuildModifierNode

Trait BuildModifierNode 

Source
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§

Source

fn apply(&self, _runtime: &mut TesseraRuntime)

Applies build-time effects to the current component node.

Source

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.

Source

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".

Implementors§