How do I create a Table[string, X] where X is a non-copyable, nonmovable and optional type?
What I want: * I shouldn't have to define X's value * X shouldn't be copied ever(proc = works theoretically, but Table doesn't care about such rules and lent doesn't really work) * I want functions to borrow X and not to ever change it So far, I have tried sink Option[T], Option[sink T], ptr Option[T] etc. I also tried to create a custom Option which's data is a sink T. Every time I either get an implicit copy or an implicit move or a segfault. Nothing works because [] returns with a copy and lent doesn't actually do anything to prevent the copy or the move.