This repository was archived by the owner on Apr 16, 2025. It is now read-only.
This repository was archived by the owner on Apr 16, 2025. It is now read-only.
Default rad/self construction #316
Open
Description
Some operations in Storage
require that the default rad/self
is set before performing them. I was thinking that a useful tactic might be to employ a PhantomData
marker for ensuring that the default is set for an instance of Storage
and those operations live under that impl
.
This pushes defensive code for those checks into one place where the initialisation of the Storage
happens.