Struct solana_program::message::compiled_keys::CompiledKeys
source · pub(crate) struct CompiledKeys {
payer: Option<Pubkey>,
key_meta_map: BTreeMap<Pubkey, CompiledKeyMeta>,
}
Expand description
A helper struct to collect pubkeys compiled for a set of instructions
Fields§
§payer: Option<Pubkey>
§key_meta_map: BTreeMap<Pubkey, CompiledKeyMeta>
Implementations§
source§impl CompiledKeys
impl CompiledKeys
sourcepub(crate) fn compile(
instructions: &[Instruction],
payer: Option<Pubkey>
) -> Self
pub(crate) fn compile( instructions: &[Instruction], payer: Option<Pubkey> ) -> Self
Compiles the pubkeys referenced by a list of instructions and organizes by signer/non-signer and writable/readonly.
pub(crate) fn try_into_message_components( self ) -> Result<(MessageHeader, Vec<Pubkey>), CompileError>
pub(crate) fn try_extract_table_lookup( &mut self, lookup_table_account: &AddressLookupTableAccount ) -> Result<Option<(MessageAddressTableLookup, LoadedAddresses)>, CompileError>
fn try_drain_keys_found_in_lookup_table( &mut self, lookup_table_addresses: &[Pubkey], key_meta_filter: impl Fn(&CompiledKeyMeta) -> bool ) -> Result<(Vec<u8>, Vec<Pubkey>), CompileError>
Trait Implementations§
source§impl Clone for CompiledKeys
impl Clone for CompiledKeys
source§fn clone(&self) -> CompiledKeys
fn clone(&self) -> CompiledKeys
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompiledKeys
impl Debug for CompiledKeys
source§impl Default for CompiledKeys
impl Default for CompiledKeys
source§fn default() -> CompiledKeys
fn default() -> CompiledKeys
Returns the “default value” for a type. Read more
source§impl PartialEq<CompiledKeys> for CompiledKeys
impl PartialEq<CompiledKeys> for CompiledKeys
source§fn eq(&self, other: &CompiledKeys) -> bool
fn eq(&self, other: &CompiledKeys) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompiledKeys
impl StructuralEq for CompiledKeys
impl StructuralPartialEq for CompiledKeys
Auto Trait Implementations§
impl RefUnwindSafe for CompiledKeys
impl Send for CompiledKeys
impl Sync for CompiledKeys
impl Unpin for CompiledKeys
impl UnwindSafe for CompiledKeys
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more