Module spl_token_2022::pod
source · Expand description
Solana program utilities for Plain Old Data types
Structs
An EncryptionPubkey that encodes
None
as all 0
, meant to be usable as a Pod type.A Pubkey that encodes
None
as all 0
, meant to be usable as a Pod type,
similar to all NonZero* number types from the bytemuck library.The standard
bool
is not a Pod
, define a replacement that isi16
type that can be used in Pod
si64
type that can be used in Pod
su16
type that can be used in Pod
su64
type that can be used in Pod
sFunctions
Convert a
Pod
into a slice (zero copy)Convert a slice into a
Pod
(zero copy)Convert a slice into a mutable
Pod
(zero copy)On-chain size of a
Pod
typeMaybe convert a slice into a
Pod
(zero copy)Type Definitions
ElGamal public key used for encryption