pub struct Symbol {
pub name: String,
pub value: u32,
pub size: u32,
pub binding: SymbolBinding,
pub symbol_type: SymbolType,
pub section: u16,
}Expand description
ELF symbol
Fields§
§name: StringSymbol name
value: u32Value/address
size: u32Size
binding: SymbolBindingBinding
symbol_type: SymbolTypeType
section: u16Section index
Implementations§
Source§impl Symbol
impl Symbol
Sourcepub fn with_value(self, value: u32) -> Self
pub fn with_value(self, value: u32) -> Self
Set value
Sourcepub fn with_binding(self, binding: SymbolBinding) -> Self
pub fn with_binding(self, binding: SymbolBinding) -> Self
Set binding
Sourcepub fn with_type(self, symbol_type: SymbolType) -> Self
pub fn with_type(self, symbol_type: SymbolType) -> Self
Set type
Sourcepub fn with_section(self, section: u16) -> Self
pub fn with_section(self, section: u16) -> Self
Set section
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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