pub enum Class {
NONE,
ELF32,
ELF64,
UNKNOWN(u32),
}
Expand description
Match the result of Elfxx_Ehdr.e_ident[EI_CLASS]
Variants§
Implementations§
§impl Class
impl Class
pub fn from_value(value: u32) -> Self
Trait Implementations§
§impl Ord for Class
impl Ord for Class
§impl PartialOrd<Class> for Class
impl PartialOrd<Class> for Class
§fn partial_cmp(&self, other: &Class) -> Option<Ordering>
fn partial_cmp(&self, other: &Class) -> 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 Class
impl Eq for Class
impl StructuralEq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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