ModularM
Modular3y ago
3 replies
ct

What kind of list should I use to add struct instances

Example struct:
struct Item:
    var name: StringLiteral
    fn __init__(inout self):
        self.name = "Unnamed"

DynamicVector cannot contain this struct instance because it is no register storable. What other type of list should I use? What would be a sample code for that?
Was this page helpful?