Skip to main content

CheckProgramId

Trait CheckProgramId 

Source
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§

Source

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.

Implementors§