pub trait PubkeyTrait {
// Required methods
fn to_solana_pubkey(&self) -> Pubkey;
fn to_array(&self) -> [u8; 32];
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl PubkeyTrait for Pubkey
Available on non-crate feature anchor only.
impl PubkeyTrait for Pubkey
Available on non-crate feature
anchor only.