Function demes_forward_capi::forward_graph_allocate
source · #[no_mangle]
pub extern "C" fn forward_graph_allocate() -> *mut OpaqueForwardGraph
Expand description
Allocate an OpaqueForwardGraph
Panics
This function will panic if the pointer allocation fails.
Safety
The pointer is returned by leaking a Box
.
The pointer is managed by rust and is freed by forward_graph_deallocate
.