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§