(Im)mutable borrows and storing objects

This is exactly the same problem as this post. TL;DR: an easy fix is to put items behind an Rc and return a clone of it.

1 Like