Module spl_token_2022::pod
source · [−]Expand description
Solana program utilities for Plain Old Data types
Structs
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 is
i16
type that can be used in Pod
s
i64
type that can be used in Pod
s
u16
type that can be used in Pod
s
u64
type that can be used in Pod
s
Functions
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
type
Maybe convert a slice into a Pod
(zero copy)