pub fn check_id<F>(&self, program_id: &Pubkey, is_enabled: F) -> bool
    where
        F: Fn(&Pubkey) -> bool,
    {
        #![allow(clippy::redundant_closure)]
        self.feature
            .map_or(true, |ref feature_id| is_enabled(feature_id))
            && self.program_id == *program_id
    }
/// Check if a program id is this precompiled program
Check if a program id is this precompiled program
Check if a program id is this precompiled program
pub fn check_id<F>(&self, program_id: &Pubkey, is_enabled: F) -> bool
    where
        F: Fn(&Pubkey) -> bool,
    {
        #![allow(clippy::redundant_closure)]
        self.feature
            .map_or(true, |ref feature_id| is_enabled(feature_id))
            && self.program_id == *program_id
    }
pub fn check_id < F > ( & self , program_id : & Pubkey , is_enabled : F ) -> bool where F : Fn ( & Pubkey ) -> bool , { # ! [ allow ( clippy redundant_closure ) ] self . feature . map_or ( true , | ref feature_id | is_enabled ( feature_id ) ) && self . program_id == * program_id }
Check if a program id is this precompiled program
Check if a program id is this precompiled program
&self
program_id
&Pubkey
is_enabled
F