Struct elf_utilities::section::Shdr32[][src]

#[repr(C)]pub struct Shdr32 {
    pub sh_name: Elf32Word,
    pub sh_type: Elf32Word,
    pub sh_flags: Elf32Word,
    pub sh_addr: Elf32Addr,
    pub sh_offset: Elf32Off,
    pub sh_size: Elf32Word,
    pub sh_link: Elf32Word,
    pub sh_info: Elf32Word,
    pub sh_addralign: Elf32Word,
    pub sh_entsize: Elf32Word,
}

Fields

sh_name: Elf32Word

Section name, index in string tbl

sh_type: Elf32Word

Type of section

sh_flags: Elf32Word

Miscellaneous section attributes

sh_addr: Elf32Addr

Section virtual addr at execution

sh_offset: Elf32Off

Section file offset

sh_size: Elf32Word

Size of section in bytes

sh_link: Elf32Word

Index of another section

sh_info: Elf32Word

Additional section information

sh_addralign: Elf32Word

Section alignment

sh_entsize: Elf32Word

Entry size if section holds table

Implementations

impl Shdr32[src]

pub const SIZE: usize[src]

pub fn get_type(&self) -> Type[src]

pub fn get_flags(&self) -> HashSet<Flag>[src]

pub fn set_type(&mut self, ty: Type)[src]

pub fn set_flags<'a, I>(&mut self, flags: I) where
    I: Iterator<Item = &'a Flag>, 
[src]

pub fn to_le_bytes(&self) -> Vec<u8>[src]

Create Vec from this.

Examples

use elf_utilities::section::Shdr32;
let null_sct : Shdr32 = Default::default();

assert_eq!([0].repeat(Shdr32::SIZE), null_sct.to_le_bytes());

Trait Implementations

impl Clone for Shdr32[src]

impl Copy for Shdr32[src]

impl Debug for Shdr32[src]

impl Default for Shdr32[src]

impl<'de> Deserialize<'de> for Shdr32[src]

impl Eq for Shdr32[src]

impl Hash for Shdr32[src]

impl Into<Shdr32> for ShdrPreparation32[src]

impl Ord for Shdr32[src]

impl PartialEq<Shdr32> for Shdr32[src]

impl PartialOrd<Shdr32> for Shdr32[src]

impl Serialize for Shdr32[src]

impl StructuralEq for Shdr32[src]

impl StructuralPartialEq for Shdr32[src]

Auto Trait Implementations

impl RefUnwindSafe for Shdr32

impl Send for Shdr32

impl Sync for Shdr32

impl Unpin for Shdr32

impl UnwindSafe for Shdr32

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.