I am trying to implement a very simple symbol table, that holds symbol name bytes in a single
Vec<u8> and handles out opaque
Copy-able “symbols” to be used in the rest of the program. I suppose that the problem is that the compiler doesn’t know that the bytes in the
Vec<u8> (that is part of the
struct SymbolTable) will live at least as the struct itself and I don’t know how to tell it.
Code here: https://is.gd/lG3AlE
(Or the error is a completely different one and I don’t grok lifetimes at all… g)