pub(super) struct MachOSectionInternal<'data, Mach: MachHeader, R: ReadRef<'data>> {
pub index: SectionIndex,
pub kind: SectionKind,
pub section: &'data Mach::Section,
pub data: R,
}
Fields§
§index: SectionIndex
§kind: SectionKind
§section: &'data Mach::Section
§data: R
The data for the file that contains the section data.
This is required for dyld caches, where this may be a different subcache from the file containing the Mach-O load commands.
Implementations§
source§impl<'data, Mach: MachHeader, R: ReadRef<'data>> MachOSectionInternal<'data, Mach, R>
impl<'data, Mach: MachHeader, R: ReadRef<'data>> MachOSectionInternal<'data, Mach, R>
pub(super) fn parse( index: SectionIndex, section: &'data Mach::Section, data: R, ) -> Self
Trait Implementations§
source§impl<'data, Mach: Clone + MachHeader, R: Clone + ReadRef<'data>> Clone for MachOSectionInternal<'data, Mach, R>
impl<'data, Mach: Clone + MachHeader, R: Clone + ReadRef<'data>> Clone for MachOSectionInternal<'data, Mach, R>
source§fn clone(&self) -> MachOSectionInternal<'data, Mach, R>
fn clone(&self) -> MachOSectionInternal<'data, Mach, R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'data, Mach: Debug + MachHeader, R: Debug + ReadRef<'data>> Debug for MachOSectionInternal<'data, Mach, R>
impl<'data, Mach: Debug + MachHeader, R: Debug + ReadRef<'data>> Debug for MachOSectionInternal<'data, Mach, R>
impl<'data, Mach: Copy + MachHeader, R: Copy + ReadRef<'data>> Copy for MachOSectionInternal<'data, Mach, R>
Auto Trait Implementations§
impl<'data, Mach, R> Freeze for MachOSectionInternal<'data, Mach, R>where
R: Freeze,
impl<'data, Mach, R> RefUnwindSafe for MachOSectionInternal<'data, Mach, R>
impl<'data, Mach, R> Send for MachOSectionInternal<'data, Mach, R>
impl<'data, Mach, R> Sync for MachOSectionInternal<'data, Mach, R>
impl<'data, Mach, R> Unpin for MachOSectionInternal<'data, Mach, R>where
R: Unpin,
impl<'data, Mach, R> UnwindSafe for MachOSectionInternal<'data, Mach, R>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)