pub struct MachOSegment<'data, 'file, Mach, R = &'data [u8]> where
'data: 'file,
Mach: MachHeader,
R: ReadRef<'data>, { /* private fields */ }
Expand description
A segment of a MachOFile
.
Trait Implementations
sourceimpl<'data, 'file, Mach: Debug, R: Debug> Debug for MachOSegment<'data, 'file, Mach, R> where
'data: 'file,
Mach: MachHeader,
R: ReadRef<'data>,
impl<'data, 'file, Mach: Debug, R: Debug> Debug for MachOSegment<'data, 'file, Mach, R> where
'data: 'file,
Mach: MachHeader,
R: ReadRef<'data>,
sourceimpl<'data, 'file, Mach, R> ObjectSegment<'data> for MachOSegment<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
impl<'data, 'file, Mach, R> ObjectSegment<'data> for MachOSegment<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
sourcefn data(&self) -> Result<&'data [u8]>
fn data(&self) -> Result<&'data [u8]>
Returns a reference to the file contents of the segment. Read more
sourcefn 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
sourcefn flags(&self) -> SegmentFlags
fn flags(&self) -> SegmentFlags
Return the flags of segment.
Auto Trait Implementations
impl<'data, 'file, Mach, R> RefUnwindSafe for MachOSegment<'data, 'file, Mach, R> where
Mach: RefUnwindSafe,
R: RefUnwindSafe,
<Mach as MachHeader>::Endian: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,
<Mach as MachHeader>::Segment: RefUnwindSafe,
impl<'data, 'file, Mach, R> Send for MachOSegment<'data, 'file, Mach, R> where
Mach: Sync,
R: Sync,
<Mach as MachHeader>::Endian: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Section: Sync,
<Mach as MachHeader>::Segment: Sync,
impl<'data, 'file, Mach, R> Sync for MachOSegment<'data, 'file, Mach, R> where
Mach: Sync,
R: Sync,
<Mach as MachHeader>::Endian: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Section: Sync,
<Mach as MachHeader>::Segment: Sync,
impl<'data, 'file, Mach, R> Unpin for MachOSegment<'data, 'file, Mach, R> where
'data: 'file,
impl<'data, 'file, Mach, R> UnwindSafe for MachOSegment<'data, 'file, Mach, R> where
Mach: RefUnwindSafe,
R: RefUnwindSafe,
<Mach as MachHeader>::Endian: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,
<Mach as MachHeader>::Segment: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more