[][src]Struct gf::mc::image::ImageSection

pub struct ImageSection {
    pub name: Option<Vec<u8>>,
    pub address_iv: Option<Iv>,
    pub file_offset_iv: Option<Iv<u64>>,
    pub contents: Vec<u8>,
    pub relocations: Vec<Relocation>,
}

Section in an Image.

Fields

name: Option<Vec<u8>>

Name.

address_iv: Option<Iv>

Address interval, None if this is not a loadable section.

file_offset_iv: Option<Iv<u64>>

File offset interval, None if this section occupies no space in file.

contents: Vec<u8>

Section contents.

relocations: Vec<Relocation>

Relocations.

Implementations

impl ImageSection[src]

pub fn name_str(&self) -> Option<&str>[src]

Return section name as a UTF-8 string if convertible.

Trait Implementations

impl Clone for ImageSection[src]

impl Debug for ImageSection[src]

Auto Trait Implementations

impl RefUnwindSafe for ImageSection

impl Send for ImageSection

impl Sync for ImageSection

impl Unpin for ImageSection

impl UnwindSafe for ImageSection

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> 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.