Closed GregoryConrad closed 10 months ago
Also, this would have the added benefit of other container implementations (different crates) being able to expose the exact same (give or take) API while requiring different traits to be in a container (like perhaps a single threaded container wouldn't need Send + Sync
, so it's CData
is only impl<T: Clone> CData for T
).
Fixed in c4b36fb8
We could either rename
CapsuleData
to something else to add this new trait (naming itCapsuleData
), or we could just add in the new trait as so:This will help implementation logic some here and there, but most importantly, this will help library users when creating capsules that are higher order functions. Example:
Not sure on what the name should be. Shorter is better because this will be abundant in user code, but we also don't want to lose meaning.