hpl_toolkit::schema

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

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.

Implementations on Foreign Types§

source§

impl Discriminator for Append

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for AppendCanopyNodes

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for CloseEmptyTree

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for InitEmptyMerkleTree

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for InitPreparedTreeWithRoot

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for InsertOrAppend

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for PrepareBatchMerkleTree

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for ReplaceLeaf

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for TransferAuthority

source§

const DISCRIMINATOR: [u8; 8] = _

source§

impl Discriminator for VerifyLeaf

source§

const DISCRIMINATOR: [u8; 8] = _

Implementors§