Skip to main content

Module structs

Module structs 

Source
Expand description

Structs: building, reading fields, and changing them in place.

Functionsยง

nf_struct_field_mut ๐Ÿ”’ โš 
The slot of the field at index in the struct in place, which becomes its only ownerโ€™s so the field can be changed. The slot is valid until the struct next changes.
nf_struct_get ๐Ÿ”’
The field at index of the borrowed struct, borrowed from it.
nf_struct_new ๐Ÿ”’ โš 
A struct of type ty whose fields are taken, in order, from fields.