Enum elflib::ArchBitLength
source · #[repr(u8)]pub enum ArchBitLength {
Arch32Bit = 1,
Arch64Bit = 2,
}
Variants§
Trait Implementations§
source§impl BinarySerde for ArchBitLength
impl BinarySerde for ArchBitLength
source§const SERIALIZED_SIZE: usize = 1usize
const SERIALIZED_SIZE: usize = 1usize
the size of this type when serialized to a packed binary format.
§type RecursiveArray = <u8 as BinarySerde>::RecursiveArray
type RecursiveArray = <u8 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 Clone for ArchBitLength
impl Clone for ArchBitLength
source§fn clone(&self) -> ArchBitLength
fn clone(&self) -> ArchBitLength
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ArchBitLength
impl Debug for ArchBitLength
source§impl Hash for ArchBitLength
impl Hash for ArchBitLength
source§impl PartialEq for ArchBitLength
impl PartialEq for ArchBitLength
source§fn eq(&self, other: &ArchBitLength) -> bool
fn eq(&self, other: &ArchBitLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ArchBitLength
impl Eq for ArchBitLength
impl StructuralPartialEq for ArchBitLength
Auto Trait Implementations§
impl Freeze for ArchBitLength
impl RefUnwindSafe for ArchBitLength
impl Send for ArchBitLength
impl Sync for ArchBitLength
impl Unpin for ArchBitLength
impl UnwindSafe for ArchBitLength
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