Struct object::read::Segment

source ·
pub struct Segment<'data, 'file, R: ReadRef<'data> = &'data [u8]>where
    'data: 'file,
{ /* private fields */ }
Expand description

A segment of a File.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the virtual address of the segment.
Returns the size of the segment in memory.
Returns the alignment of the segment in memory.
Returns the offset and size of the segment in the file.
Returns a reference to the file contents of the segment. Read more
Return the segment data in the given range. Read more
Returns the name of the segment.
Returns the name of the segment. Read more
Return the flags of segment.

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.