pub trait ArrangeAccounts {
type ArrangedAccounts;
// Required method
fn arrange_accounts(
accounts: &[AccountMeta],
) -> Option<Self::ArrangedAccounts>;
}Expand description
Rearranges instruction AccountMetas into a typed layout.
Use this to map positional accounts into a more descriptive structure,
returning None when the layout is not satisfied.
Required Associated Types§
Required Methods§
fn arrange_accounts(accounts: &[AccountMeta]) -> Option<Self::ArrangedAccounts>
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.