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§
const DISCRIMINATOR: [u8; 8]
Provided Methods§
fn discriminator() -> [u8; 8]
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.