I have a struct:
#[derive(ConstDefault, Clone, Debug)]
pub struct CollectionPointer<T: 'static> {
pub parent: Option<BuiltInPointer>,
pub value: T,
pub index: Option<u32>,
/// operations done on this collection pointer.
pub operations: ExpressionStack<T>
}
I need to implement Deref to CollectionPointer, but I can't deref to CollectionPointer unless ExpressionStack is both mutable, and copyable, but I havent been able to find a collection type that is. Ideas for what I could do?
#[derive(Deref, DerefMut, Debug, Clone, Copy)]
pub struct ExpressionStack<T>(Vec<ExpressionOperation<T>>);
