spl_account_compression::zero_copy

Trait ZeroCopy

source
pub trait ZeroCopy: Pod {
    // Provided methods
    fn load_mut_bytes<'a>(data: &'a mut [u8]) -> Result<&'a mut Self> { ... }
    fn load_bytes<'a>(data: &'a [u8]) -> Result<&'a Self> { ... }
}

Provided Methods§

source

fn load_mut_bytes<'a>(data: &'a mut [u8]) -> Result<&'a mut Self>

source

fn load_bytes<'a>(data: &'a [u8]) -> Result<&'a Self>

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.

Implementors§

source§

impl<const MAX_DEPTH: usize, const MAX_BUFFER_SIZE: usize> ZeroCopy for ConcurrentMerkleTree<MAX_DEPTH, MAX_BUFFER_SIZE>