pub fn singleton<'a, S: Storage, T>(storage: &'a mut S, key: &[u8]) -> Singleton<'a, S, T>
where
    T: Serialize + DeserializeOwned,
{
    Singleton::new(storage, key)
}
// singleton is a helper function for less verbose usage
singleton is a helper function for less verbose usage
singleton is a helper function for less verbose usage
pub fn singleton<'a, S: Storage, T>(storage: &'a mut S, key: &[u8]) -> Singleton<'a, S, T>
where
    T: Serialize + DeserializeOwned,
{
    Singleton::new(storage, key)
}
pub fn singleton < ' a , S : Storage , T > ( storage : & ' a mut S , key : & [ u8 ] ) -> Singleton < ' a , S , T > where T : Serialize + DeserializeOwned , { Singleton :: new ( storage , key ) }
singleton is a helper function for less verbose usage
singleton is a helper function for less verbose usage
storage
&'a mut S
key
&[u8]
storage
&'a mut S
key
&[u8]