pub fn is_key_called_as_program(&self, key_index: usize) -> bool {
        if let Ok(key_index) = u8::try_from(key_index) {
            self.message
                .instructions
                .iter()
                .any(|ix| ix.program_id_index == key_index)
        } else {
            false
        }
    }
/// Returns true if the account at the specified index is called as a program by an instruction
Returns true if the account at the specified index is called as a program by an instruction
Returns true if the account at the specified index is called as a program by an instruction
pub fn is_key_called_as_program(&self, key_index: usize) -> bool {
        if let Ok(key_index) = u8::try_from(key_index) {
            self.message
                .instructions
                .iter()
                .any(|ix| ix.program_id_index == key_index)
        } else {
            false
        }
    }
pub fn is_key_called_as_program ( & self , key_index : usize ) -> bool { if let Ok ( key_index ) = u8 :: try_from ( key_index ) { self . message . instructions . iter ( ) . any ( | ix | ix . program_id_index == key_index ) } else { false } }
Returns true if the account at the specified index is called as a program by an instruction
Returns true if the account at the specified index is called as a program by an instruction
&self
key_index
usize