Crate smalloca

Source

Functionsยง

smalloca
Builds a slice of a Prototype Objects with specified size, fills it with clones of the prototype and passes it to the provided function. It runs the destructors after executing the function. The prototype needs to implement Clone
smalloca_default
Builds a slice of a Prototype Objects with specified size, fills it with default values and passes it to the provided function. It runs the destructors after executing the function. The prototype needs to implement Default