Struct object::read::macho::MachOComdat
source · pub struct MachOComdat<'data, 'file, Mach, R = &'data [u8]>where
Mach: MachHeader,
R: ReadRef<'data>,{ /* private fields */ }
Expand description
A COMDAT section group of a MachOFile
.
Trait Implementations§
source§impl<'data, 'file, Mach, R> Debug for MachOComdat<'data, 'file, Mach, R>
impl<'data, 'file, Mach, R> Debug for MachOComdat<'data, 'file, Mach, R>
source§impl<'data, 'file, Mach, R> ObjectComdat<'data> for MachOComdat<'data, 'file, Mach, R>where
Mach: MachHeader,
R: ReadRef<'data>,
impl<'data, 'file, Mach, R> ObjectComdat<'data> for MachOComdat<'data, 'file, Mach, R>where
Mach: MachHeader,
R: ReadRef<'data>,
§type SectionIterator = MachOComdatSectionIterator<'data, 'file, Mach, R>
type SectionIterator = MachOComdatSectionIterator<'data, 'file, Mach, R>
An iterator over the sections in the object file.
source§fn kind(&self) -> ComdatKind
fn kind(&self) -> ComdatKind
Returns the COMDAT selection kind.
source§fn symbol(&self) -> SymbolIndex
fn symbol(&self) -> SymbolIndex
Returns the index of the symbol used for the name of COMDAT section group.
source§fn name_bytes(&self) -> Result<&[u8]>
fn name_bytes(&self) -> Result<&[u8]>
Returns the name of the COMDAT section group.
source§fn sections(&self) -> Self::SectionIterator
fn sections(&self) -> Self::SectionIterator
Get the sections in this section group.
Auto Trait Implementations§
impl<'data, 'file, Mach, R> Freeze for MachOComdat<'data, 'file, Mach, R>
impl<'data, 'file, Mach, R> RefUnwindSafe for MachOComdat<'data, 'file, Mach, R>where
<Mach as MachHeader>::Endian: RefUnwindSafe,
R: RefUnwindSafe,
Mach: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Segment: RefUnwindSafe,
<Mach as MachHeader>::Section: RefUnwindSafe,
impl<'data, 'file, Mach, R> Send for MachOComdat<'data, 'file, Mach, R>where
<Mach as MachHeader>::Endian: Sync,
R: Sync,
Mach: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Segment: Sync,
<Mach as MachHeader>::Section: Sync,
impl<'data, 'file, Mach, R> Sync for MachOComdat<'data, 'file, Mach, R>where
<Mach as MachHeader>::Endian: Sync,
R: Sync,
Mach: Sync,
<Mach as MachHeader>::Nlist: Sync,
<Mach as MachHeader>::Segment: Sync,
<Mach as MachHeader>::Section: Sync,
impl<'data, 'file, Mach, R> Unpin for MachOComdat<'data, 'file, Mach, R>
impl<'data, 'file, Mach, R> UnwindSafe for MachOComdat<'data, 'file, Mach, R>where
<Mach as MachHeader>::Endian: RefUnwindSafe,
R: RefUnwindSafe,
Mach: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
<Mach as MachHeader>::Segment: RefUnwindSafe,
<Mach as MachHeader>::Section: 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