pub trait VariantStructBinarySerde<'a>: Sized {
type Context: Clone;
// Required methods
fn deserialize(
deserializer: &mut BinaryDeserializerFromBufSafe<'a>,
parser: &ElfParser<'a>,
context: Self::Context,
) -> Result<Self, BinarySerdeBufSafeError>;
fn serialize(&self, buf: &mut [u8], endianness: Endianness);
fn record_len(file_info: &ElfFileInfo) -> usize;
}Required Associated Types§
Required Methods§
fn deserialize( deserializer: &mut BinaryDeserializerFromBufSafe<'a>, parser: &ElfParser<'a>, context: Self::Context, ) -> Result<Self, BinarySerdeBufSafeError>
fn serialize(&self, buf: &mut [u8], endianness: Endianness)
fn record_len(file_info: &ElfFileInfo) -> usize
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.