pub enum SymbolType {
Undefined,
Absolute,
Section,
PreboundUndefined,
Indirect,
Stab(u8),
Unknown(u8),
}Expand description
The SymbolType type.
Variants§
Undefined
The Undefined variant.
Absolute
The Absolute variant.
Section
The Section variant.
PreboundUndefined
The PreboundUndefined variant.
Indirect
The Indirect variant.
Stab(u8)
STAB debugging symbol. The inner value is the stab type code
(the full n_type byte with N_STAB bits set). STAB symbols are
not regular code/data symbols — is_defined() and is_undefined()
both return false for them.
Unknown(u8)
Unknown symbol type. The inner value is the masked N_TYPE bits only (not the full n_type byte).
Implementations§
Source§impl SymbolType
impl SymbolType
Sourcepub fn from_n_type(n_type: u8) -> SymbolType
pub fn from_n_type(n_type: u8) -> SymbolType
Performs from_n_type.
Trait Implementations§
Source§impl Clone for SymbolType
impl Clone for SymbolType
Source§fn clone(&self) -> SymbolType
fn clone(&self) -> SymbolType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SymbolType
Source§impl Debug for SymbolType
impl Debug for SymbolType
Source§impl Display for SymbolType
impl Display for SymbolType
impl Eq for SymbolType
Source§impl PartialEq for SymbolType
impl PartialEq for SymbolType
impl StructuralPartialEq for SymbolType
Auto Trait Implementations§
impl Freeze for SymbolType
impl RefUnwindSafe for SymbolType
impl Send for SymbolType
impl Sync for SymbolType
impl Unpin for SymbolType
impl UnsafeUnpin for SymbolType
impl UnwindSafe for SymbolType
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