Skip to main content

NodeGraphCallbacks

Trait NodeGraphCallbacks 

Source
pub trait NodeGraphCallbacks:
    NodeGraphCommitCallbacks
    + NodeGraphViewCallbacks
    + NodeGraphGestureCallbacks { }
Expand description

Composite callback surface consumed by store/canvas adapters.

Prefer implementing the smallest concern traits:

  • NodeGraphCommitCallbacks for committed graph patches,
  • NodeGraphViewCallbacks for viewport/selection synchronization,
  • NodeGraphGestureCallbacks for transient UI gesture lifecycle.

NodeGraphCallbacks itself is only the composition boundary used by install_callbacks and retained canvas wiring.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§