#[repr(C)]pub struct Sym {
pub st_name: u32,
pub st_value: u32,
pub st_size: u32,
pub st_info: u8,
pub st_other: u8,
pub st_shndx: u16,
}
Expand description
32-bit Sym - used for both static and dynamic symbol information in a binary
Fields§
§st_name: u32
Symbol name (string tbl index)
st_value: u32
Symbol value
st_size: u32
Symbol size
st_info: u8
Symbol type and binding
st_other: u8
Symbol visibility
st_shndx: u16
Section index
Implementations§
Trait Implementations§
source§impl Plain for Sym
impl Plain for Sym
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where Self: Sized,
fn slice_from_mut_bytes_len( bytes: &mut [u8], len: usize ) -> Result<&mut [Self], Error>where Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
source§impl<'a> TryIntoCtx<Endian> for &'a Sym
impl<'a> TryIntoCtx<Endian> for &'a Sym
source§impl TryIntoCtx<Endian> for Sym
impl TryIntoCtx<Endian> for Sym
impl Copy for Sym
impl StructuralPartialEq for Sym
Auto Trait Implementations§
impl RefUnwindSafe for Sym
impl Send for Sym
impl Sync for Sym
impl Unpin for Sym
impl UnwindSafe for Sym
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