pub trait PackedAddressTreeInfoExt {
// Required method
fn get_tree_pubkey<T: AccountInfoTrait + Clone>(
&self,
cpi_accounts: &impl TreeAccounts<T>,
) -> Result<T::Pubkey, LightSdkTypesError>;
}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: AccountInfoTrait + Clone>( &self, cpi_accounts: &impl TreeAccounts<T>, ) -> Result<T::Pubkey, LightSdkTypesError>
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.