pub trait SplDiscriminate {
const SPL_DISCRIMINATOR: ArrayDiscriminator;
const SPL_DISCRIMINATOR_SLICE: &'static [u8] = _;
}
Expand description
A trait for managing 8-byte discriminators in a slab of bytes
Required Associated Constants§
Sourceconst SPL_DISCRIMINATOR: ArrayDiscriminator
const SPL_DISCRIMINATOR: ArrayDiscriminator
The 8-byte discriminator as a [u8; 8]
Provided Associated Constants§
Sourceconst SPL_DISCRIMINATOR_SLICE: &'static [u8] = _
const SPL_DISCRIMINATOR_SLICE: &'static [u8] = _
The 8-byte discriminator as a slice (&[u8]
)
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.