pub async unsafe fn get_hash_set<T, R>(rpc: &mut R, pubkey: Pubkey) -> HashSetwhere
R: RpcConnection,Expand 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.