Enum object::SymbolFlags
source · #[non_exhaustive]pub enum SymbolFlags<Section, Symbol> {
None,
Elf {
st_info: u8,
st_other: u8,
},
MachO {
n_desc: u16,
},
CoffSection {
selection: u8,
associative_section: Option<Section>,
},
Xcoff {
n_sclass: u8,
x_smtyp: u8,
x_smclas: u8,
containing_csect: Option<Symbol>,
},
}
Expand description
Symbol flags that are specific to each file format.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No symbol flags.
Elf
ELF symbol flags.
MachO
Mach-O symbol flags.
CoffSection
COFF flags for a section symbol.
Fields
Xcoff
XCOFF symbol flags.
Trait Implementations§
source§impl<Section: Clone, Symbol: Clone> Clone for SymbolFlags<Section, Symbol>
impl<Section: Clone, Symbol: Clone> Clone for SymbolFlags<Section, Symbol>
source§fn clone(&self) -> SymbolFlags<Section, Symbol>
fn clone(&self) -> SymbolFlags<Section, Symbol>
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<Section: PartialEq, Symbol: PartialEq> PartialEq for SymbolFlags<Section, Symbol>
impl<Section: PartialEq, Symbol: PartialEq> PartialEq for SymbolFlags<Section, Symbol>
source§fn eq(&self, other: &SymbolFlags<Section, Symbol>) -> bool
fn eq(&self, other: &SymbolFlags<Section, Symbol>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<Section: Copy, Symbol: Copy> Copy for SymbolFlags<Section, Symbol>
impl<Section: Eq, Symbol: Eq> Eq for SymbolFlags<Section, Symbol>
impl<Section, Symbol> StructuralPartialEq for SymbolFlags<Section, Symbol>
Auto Trait Implementations§
impl<Section, Symbol> Freeze for SymbolFlags<Section, Symbol>
impl<Section, Symbol> RefUnwindSafe for SymbolFlags<Section, Symbol>where
Section: RefUnwindSafe,
Symbol: RefUnwindSafe,
impl<Section, Symbol> Send for SymbolFlags<Section, Symbol>
impl<Section, Symbol> Sync for SymbolFlags<Section, Symbol>
impl<Section, Symbol> Unpin for SymbolFlags<Section, Symbol>
impl<Section, Symbol> UnwindSafe for SymbolFlags<Section, Symbol>where
Section: UnwindSafe,
Symbol: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.