pub enum ElfData {
NONE,
LSB,
MSB,
UNKNOWN(u32),
}
Expand description
Match the result Elfxx_Ehdr.e_ident[EI_DATA]
Variants§
NONE
Invalid data encodin
LSB
2’s complement, little endian
MSB
2’s complement, big endian
UNKNOWN(u32)
Implementations§
§impl ElfData
impl ElfData
pub fn from_value(value: u32) -> Self
Trait Implementations§
§impl Ord for ElfData
impl Ord for ElfData
§impl PartialOrd<ElfData> for ElfData
impl PartialOrd<ElfData> for ElfData
§fn partial_cmp(&self, other: &ElfData) -> Option<Ordering>
fn partial_cmp(&self, other: &ElfData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ElfData
impl Eq for ElfData
impl StructuralEq for ElfData
impl StructuralPartialEq for ElfData
Auto Trait Implementations§
impl RefUnwindSafe for ElfData
impl Send for ElfData
impl Sync for ElfData
impl Unpin for ElfData
impl UnwindSafe for ElfData
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