pub trait CheckProgramId {
// Required method
fn address_eq(program_id: &Address) -> bool;
}Expand description
Trait to check whether a program ID matches an expected program.
Required Methods§
Sourcefn address_eq(program_id: &Address) -> bool
fn address_eq(program_id: &Address) -> bool
Returns true if the given program ID matches this program.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.