Function light_test_utils::get_hash_set
source · pub async unsafe fn get_hash_set<T, R: RpcConnection>(
rpc: &mut R,
pubkey: Pubkey,
) -> HashSetExpand description
Fetches the given account, then copies and serializes it as a HashSet.
§Safety
This is highly unsafe. Ensuring that:
- The correct account is used.
- The account has enough space to be treated as a HashSet with specified parameters.
- The account data is aligned.
Is the caller’s responsibility.