Serde has an rc feature that treats Rc and Arc as cheap pointers to the data within. If the data within can be validated, I suppose it is a trait of some kind, then the Rc<T> also implements the trait. A blanket trait implementation would work well here
Serde has an
rc
feature that treatsRc
andArc
as cheap pointers to the data within. If the data within can be validated, I suppose it is a trait of some kind, then theRc<T>
also implements the trait. A blanket trait implementation would work well here