pub enum Type {
NOTYPE,
OBJECT,
FUNC,
SECTION,
FILE,
COMMON,
TLS,
GNU_IFUNC,
UNKNOWN(u32),
}
Expand description
Type of the symbol. This enum matches the STT_xxx
values of the ELF
specs
Variants§
NOTYPE
Symbol’s type is not specified
OBJECT
Symbol is a data object (variable, array, etc.)
FUNC
Symbol is executable code (function, etc.)
SECTION
Symbol refers to a section
FILE
Local, absolute symbol that refers to a file
COMMON
An uninitialized common block
TLS
Thread local data object
GNU_IFUNC
GNU indirect function
UNKNOWN(u32)
Implementations§
§impl Type
impl Type
pub fn from_value(value: u32) -> Self
Trait Implementations§
§impl Ord for Type
impl Ord for Type
§impl PartialOrd<Type> for Type
impl PartialOrd<Type> for Type
§fn partial_cmp(&self, other: &Type) -> Option<Ordering>
fn partial_cmp(&self, other: &Type) -> 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 Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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