pub struct ElfIdent {
pub header: ElfIdentHeader,
pub padding: [u8; 7],
}
Fields§
§header: ElfIdentHeader
§padding: [u8; 7]
Trait Implementations§
source§impl BinarySerde for ElfIdent
impl BinarySerde for ElfIdent
source§const SERIALIZED_SIZE: usize = 16usize
const SERIALIZED_SIZE: usize = 16usize
the size of this type when serialized to a packed binary format.
§type RecursiveArray = RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, EmptyRecursiveArray, <ElfIdentHeader as BinarySerde>::RecursiveArray>, <[u8; 7] as BinarySerde>::RecursiveArray>
type RecursiveArray = RecursiveArrayConcatenation<u8, RecursiveArrayConcatenation<u8, EmptyRecursiveArray, <ElfIdentHeader as BinarySerde>::RecursiveArray>, <[u8; 7] as BinarySerde>::RecursiveArray>
the fixed size recursive array type that is returned when serializing this type to an array.
the length of this array is guaranteed to be equal to
Self::SERIALIZED_SIZE
.source§fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
serialize this value into the given buffer using the given endianness. Read more
source§fn binary_deserialize(
buf: &[u8],
endianness: Endianness
) -> Result<Self, DeserializeError>
fn binary_deserialize( buf: &[u8], endianness: Endianness ) -> Result<Self, DeserializeError>
deserializes the given buffer using the given endianness into a value of this type. Read more
source§fn binary_serialize_to_array(
&self,
endianness: Endianness
) -> Self::RecursiveArray
fn binary_serialize_to_array( &self, endianness: Endianness ) -> Self::RecursiveArray
serialize this value to a fixed size array using the given endianness.
source§impl PartialEq for ElfIdent
impl PartialEq for ElfIdent
impl Eq for ElfIdent
impl StructuralPartialEq for ElfIdent
Auto Trait Implementations§
impl Freeze for ElfIdent
impl RefUnwindSafe for ElfIdent
impl Send for ElfIdent
impl Sync for ElfIdent
impl Unpin for ElfIdent
impl UnwindSafe for ElfIdent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more