pub trait PackedAddressTreeInfoExt {
// Required method
fn get_tree_pubkey<T>(
&self,
cpi_accounts: &impl TreeAccounts<T>,
) -> Result<<T as AccountInfoTrait>::Pubkey, LightSdkTypesError>
where T: AccountInfoTrait + Clone;
}Expand description
Extension trait for PackedAddressTreeInfo SDK-specific methods. Since PackedAddressTreeInfo is defined in light-compressed-account, we use an extension trait to add methods that depend on SDK types.
Required Methods§
fn get_tree_pubkey<T>(
&self,
cpi_accounts: &impl TreeAccounts<T>,
) -> Result<<T as AccountInfoTrait>::Pubkey, LightSdkTypesError>where
T: AccountInfoTrait + Clone,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.