Skip to main content

soil_sum_new

Function soil_sum_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn soil_sum_new( runtime: *mut SoilRuntime, type_id: u32, variant: *const c_char, payload: *const Value, err: *mut *mut SoilError, ) -> *mut Value
Expand description

Build a sum value by variant name. payload is null for nullary variants, borrowed otherwise.

ยงSafety

runtime is live; variant is a NUL-terminated UTF-8 string; payload is null or a valid value handle; err is null or valid.