#[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: u32Symbol name (string tbl index)
st_value: u32Symbol value
st_size: u32Symbol size
st_info: u8Symbol type and binding
st_other: u8Symbol visibility
st_shndx: u16Section 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 Freeze for Sym
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