pub struct XcoffSegment<'data, 'file, Xcoff, R = &'data [u8]>where
Xcoff: FileHeader,
R: ReadRef<'data>,{
pub(super) file: &'file XcoffFile<'data, Xcoff, R>,
}
Expand description
A loadable section in an XcoffFile
.
This is a stub that doesn’t implement any functionality.
Fields§
§file: &'file XcoffFile<'data, Xcoff, R>
Trait Implementations§
source§impl<'data, 'file, Xcoff, R> Debug for XcoffSegment<'data, 'file, Xcoff, R>
impl<'data, 'file, Xcoff, R> Debug for XcoffSegment<'data, 'file, Xcoff, R>
source§impl<'data, 'file, Xcoff, R> ObjectSegment<'data> for XcoffSegment<'data, 'file, Xcoff, R>where
Xcoff: FileHeader,
R: ReadRef<'data>,
impl<'data, 'file, Xcoff, R> ObjectSegment<'data> for XcoffSegment<'data, 'file, Xcoff, R>where
Xcoff: FileHeader,
R: ReadRef<'data>,
source§fn file_range(&self) -> (u64, u64)
fn file_range(&self) -> (u64, u64)
Returns the offset and size of the segment in the file.
source§fn data(&self) -> Result<&'data [u8]>
fn data(&self) -> Result<&'data [u8]>
Returns a reference to the file contents of the segment. Read more
source§fn data_range(&self, _address: u64, _size: u64) -> Result<Option<&'data [u8]>>
fn data_range(&self, _address: u64, _size: u64) -> Result<Option<&'data [u8]>>
Return the segment data in the given range. Read more
source§fn flags(&self) -> SegmentFlags
fn flags(&self) -> SegmentFlags
Return the flags of segment.
impl<'data, 'file, Xcoff, R> Sealed for XcoffSegment<'data, 'file, Xcoff, R>where
Xcoff: FileHeader,
R: ReadRef<'data>,
Auto Trait Implementations§
impl<'data, 'file, Xcoff, R> Freeze for XcoffSegment<'data, 'file, Xcoff, R>
impl<'data, 'file, Xcoff, R> RefUnwindSafe for XcoffSegment<'data, 'file, Xcoff, R>where
R: RefUnwindSafe,
Xcoff: RefUnwindSafe,
<Xcoff as FileHeader>::AuxHeader: RefUnwindSafe,
<Xcoff as FileHeader>::SectionHeader: RefUnwindSafe,
impl<'data, 'file, Xcoff, R> Send for XcoffSegment<'data, 'file, Xcoff, R>where
R: Sync,
Xcoff: Sync,
<Xcoff as FileHeader>::AuxHeader: Sync,
<Xcoff as FileHeader>::SectionHeader: Sync,
impl<'data, 'file, Xcoff, R> Sync for XcoffSegment<'data, 'file, Xcoff, R>where
R: Sync,
Xcoff: Sync,
<Xcoff as FileHeader>::AuxHeader: Sync,
<Xcoff as FileHeader>::SectionHeader: Sync,
impl<'data, 'file, Xcoff, R> Unpin for XcoffSegment<'data, 'file, Xcoff, R>
impl<'data, 'file, Xcoff, R> UnwindSafe for XcoffSegment<'data, 'file, Xcoff, R>where
R: RefUnwindSafe,
Xcoff: RefUnwindSafe,
<Xcoff as FileHeader>::AuxHeader: RefUnwindSafe,
<Xcoff as FileHeader>::SectionHeader: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more