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