Hello! I want to build a container that can store arbitrary type and do a few operations on it (that is for the general type). It would look something like:
Once you've fixed the impl<T> issue, the problem with your code is that you are trying to take (move) the value out of self.data, but since you only have a mutable reference to self you can't do this without replacing it with another value. Maybe you want this instead?