Struct elf_utilities::section::ShdrPreparation32 [−][src]
A Shdr32 builder
Examples
use elf_utilities::section; let shdr: section::Shdr32 = section::ShdrPreparation32::default() .ty(section::Type::ProgBits) .flags(vec![section::Flag::Alloc, section::Flag::Write].iter()) .into(); assert_eq!(section::Type::ProgBits, shdr.get_type()); assert!(shdr.get_flags().contains(§ion::Flag::Alloc)); assert!(shdr.get_flags().contains(§ion::Flag::Write));
Fields
sh_type: TypeType of section
sh_flags: Elf32WordMiscellaneous section attributes
sh_link: Elf32WordIndex of another section
sh_info: Elf32WordAdditional section information
sh_addralign: Elf32WordSection alignment
Implementations
impl ShdrPreparation32[src]
pub fn ty(self, t: Type) -> Self[src]
pub fn flags<'a, I>(self, flags: I) -> Self where
I: Iterator<Item = &'a Flag>, [src]
I: Iterator<Item = &'a Flag>,
pub fn link(self, link: Elf32Word) -> Self[src]
pub fn info(self, info: Elf32Word) -> Self[src]
Trait Implementations
impl Clone for ShdrPreparation32[src]
fn clone(&self) -> ShdrPreparation32[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ShdrPreparation32[src]
impl Default for ShdrPreparation32[src]
impl Eq for ShdrPreparation32[src]
impl Hash for ShdrPreparation32[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Into<Shdr32> for ShdrPreparation32[src]
impl Ord for ShdrPreparation32[src]
fn cmp(&self, other: &ShdrPreparation32) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<ShdrPreparation32> for ShdrPreparation32[src]
fn eq(&self, other: &ShdrPreparation32) -> bool[src]
fn ne(&self, other: &ShdrPreparation32) -> bool[src]
impl PartialOrd<ShdrPreparation32> for ShdrPreparation32[src]
fn partial_cmp(&self, other: &ShdrPreparation32) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for ShdrPreparation32[src]
impl StructuralPartialEq for ShdrPreparation32[src]
Auto Trait Implementations
impl RefUnwindSafe for ShdrPreparation32
impl Send for ShdrPreparation32
impl Sync for ShdrPreparation32
impl Unpin for ShdrPreparation32
impl UnwindSafe for ShdrPreparation32
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,