pub fn keyed_account_at_index<'a>(
    keyed_accounts: &'a [KeyedAccount],
    index: usize,
) -> Result<&'a KeyedAccount<'a>, InstructionError> {
    keyed_accounts
        .get(index)
        .ok_or(InstructionError::NotEnoughAccountKeys)
}
/// Return the KeyedAccount at the specified index or a NotEnoughAccountKeys error
///
/// Index zero starts at the chain of program accounts, followed by the instruction accounts.
Return the KeyedAccount at the specified index or a NotEnoughAccountKeys error
Index zero starts at the chain of program accounts, followed by the instruction accounts.
Return the KeyedAccount at the specified index or a NotEnoughAccountKeys error Index zero starts at the chain of program accounts followed by the instruction accounts .
pub fn keyed_account_at_index<'a>(
    keyed_accounts: &'a [KeyedAccount],
    index: usize,
) -> Result<&'a KeyedAccount<'a>, InstructionError> {
    keyed_accounts
        .get(index)
        .ok_or(InstructionError::NotEnoughAccountKeys)
}
pub fn keyed_account_at_index < ' a > ( keyed_accounts : & ' a [ KeyedAccount ] , index : usize , ) -> Result < & ' a KeyedAccount < ' a > , InstructionError > { keyed_accounts . get ( index ) . ok_or ( InstructionError :: NotEnoughAccountKeys ) }
Return the KeyedAccount at the specified index or a NotEnoughAccountKeys error
Index zero starts at the chain of program accounts, followed by the instruction accounts.
Return the KeyedAccount at the specified index or a NotEnoughAccountKeys error Index zero starts at the chain of program accounts followed by the instruction accounts .
keyed_accounts
&'a [KeyedAccount]
index
usize