Skip to main content

nf_struct_new

Function nf_struct_new 

Source
#[unsafe(no_mangle)]
pub(crate) unsafe extern "C" fn nf_struct_new( ty: &'static TypeDesc, fields: *const Slot, ) -> Slot
Expand description

A struct of type ty whose fields are taken, in order, from fields.

§Safety

ty is a struct type and fields points to one slot per field, of the field’s type.