Struct object::write::Section

source ·
pub struct Section<'a> {
    pub flags: SectionFlags,
    /* private fields */
}
Expand description

A section in an object file.

Fields§

§flags: SectionFlags

Section flags that are specific to each file format.

Implementations§

Try to convert the name to a utf8 string.

Try to convert the segment to a utf8 string.

Return true if this section contains zerofill data.

Set the data for a section.

Must not be called for sections that already have data, or that contain uninitialized data.

Append data to a section.

Must not be called for sections that contain uninitialized data.

Append unitialized data to a section.

Must not be called for sections that contain initialized data.

Returns the section as-built so far.

This requires that the section is not a bss section.

Returns the section as-built so far.

This requires that the section is not a bss section.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.