title: Self referencing struct-like object with numba in python
body: <p>For multiple reasons, I have to translate C++ code to python and still make it as fast as possible. After trying multiple options like concurrent.futures, its still a  bit too slow for my liking but i've been trying to use Numba to make it faster. There's a small part of the C++ code thats giving me trouble and it's a self-referencing structure:</p>
  <pre><code>struct node_struct{
  
    int neighbourindex;
    struct node_struct *next;
  };
  
  typedef struct node_struct node;
  </code></pre>
  <p>I need to fill a numpy array of these structures and fill them over time in loops and i cant seem to make it work.</p>
  <p>Does anyone have encounterd this before or has any idea how to solve it?
  Thanks in advance!</p>