pub fn next_optional_account_info<'a, 'b, I: Iterator<Item = &'a AccountInfo<'b>>>(
iter: &mut I,
program_id: &Pubkey,
) -> Result<Option<I::Item>, ProgramError>Expand description
Tries to fetch the next account as an optional account from the account iterator
By convention, when an account is set to be the program_id, it’s interpreted as
Option::None