Trait anchor_lang::Discriminator

source ·
pub trait Discriminator {
    const DISCRIMINATOR: [u8; 8];

    // Provided method
    fn discriminator() -> [u8; 8] { ... }
}
Expand description

8 byte unique identifier for a type.

Required Associated Constants§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Discriminator for ProgramData

Available on crate feature idl-build only.
source§

const DISCRIMINATOR: [u8; 8] = _