graph_from_handle

Function graph_from_handle 

Source
pub unsafe fn graph_from_handle<'a, D: PluginDsp>(
    handle: *mut BbxGraph,
) -> &'a mut GraphInner<D>
Expand description

Convert a raw pointer to a GraphInner reference.

ยงSafety

The caller must ensure:

  • The pointer is valid and was created by handle_from_graph with the same DSP type.
  • The returned reference is not used beyond the lifetime of the handle.
  • No other mutable references to the same handle exist concurrently.