PackedAddressTreeInfoExt

Trait PackedAddressTreeInfoExt 

Source
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§

Source

fn get_tree_pubkey<T>( &self, cpi_accounts: &impl TreeAccounts<T>, ) -> Result<<T as AccountInfoTrait>::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.

Implementors§