Expand description
Structs: building, reading fields, and changing them in place.
Functionsยง
- nf_
struct_ ๐ โfield_ mut - The slot of the field at
indexin the struct inplace, 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
indexof the borrowed struct, borrowed from it. - nf_
struct_ ๐ โnew - A struct of type
tywhose fields are taken, in order, fromfields.