pub fn add_program(&mut self, program_id: Pubkey, process_instruction: ProcessInstruction) {
        match self.programs.iter_mut().find(|(key, _)| program_id == *key) {
            Some((_, processor)) => *processor = process_instruction,
            None => self.programs.push((program_id, process_instruction)),
        }
    }
/// Add a static entrypoint to intercept instructions before the dynamic loader.
Add a static entrypoint to intercept instructions before the dynamic loader.
Add a static entrypoint to intercept instructions before the dynamic loader .
pub fn add_program(&mut self, program_id: Pubkey, process_instruction: ProcessInstruction) {
        match self.programs.iter_mut().find(|(key, _)| program_id == *key) {
            Some((_, processor)) => *processor = process_instruction,
            None => self.programs.push((program_id, process_instruction)),
        }
    }
pub fn add_program ( & mut self , program_id : Pubkey , process_instruction : ProcessInstruction ) { match self . programs . iter_mut ( ) . find ( | ( key , _ ) | program_id == * key ) { Some ( ( _ , processor ) ) => * processor = process_instruction , None => self . programs . push ( ( program_id , process_instruction ) ) , } }
Add a static entrypoint to intercept instructions before the dynamic loader.
Add a static entrypoint to intercept instructions before the dynamic loader .
&mut self
program_id
Pubkey
process_instruction
ProcessInstruction
&mut self
program_id
Pubkey
process_instruction
ProcessInstruction