# C like struct in numba

**URL:** https://numba.discourse.group/t/c-like-struct-in-numba/139
**Category:** Community Support
**Created:** [July 28, 2020, 4:03pm UTC](https://numba.discourse.group/t/c-like-struct-in-numba/139 "2020-07-28T16:03:22Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![rpopovici](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/rpopovici/32/86_2.png) [@rpopovici](https://numba.discourse.group/u/rpopovici)
#### Post date: [October 12, 2020, 2:23pm UTC](https://numba.discourse.group/t/c-like-struct-in-numba/139/15 "2020-10-12T14:23:34Z")

</div>

The only options I know of for heap allocated data structures are:

- StructModel, stack allocated intended originaly for low level llvm. more info here [Interval example: Why do mutable types need more sophisticated data models?](https://numba.discourse.group/t/interval-example-why-do-mutable-types-need-more-sophisticated-data-models/150)
- StructRef, new experimental heap allocated
- jitclass heap allocated
- numpy.recarrays
- named tuple, immutable

---

_[View the full topic](https://numba.discourse.group/t/c-like-struct-in-numba/139)._
