Trait AccountDeserialize

Source
pub trait AccountDeserialize {
    // Required methods
    fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>;
    fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>;
}

Required Methods§

Source

fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>

Source

fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>

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§