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
sourceimpl<'data, 'file, Mach: Debug, R: Debug> Debug for MachOComdat<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
impl<'data, 'file, Mach: Debug, R: Debug> Debug for MachOComdat<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
sourceimpl<'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.
sourcefn kind(&self) -> ComdatKind
fn kind(&self) -> ComdatKind
Returns the COMDAT selection kind.
sourcefn symbol(&self) -> SymbolIndex
fn symbol(&self) -> SymbolIndex
Returns the index of the symbol used for the name of COMDAT section group.
sourcefn sections(&self) -> Self::SectionIterator
fn sections(&self) -> Self::SectionIterator
Get the sections in this section group.
Auto Trait Implementations
impl<'data, 'file, Mach, R> RefUnwindSafe for MachOComdat<'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 MachOComdat<'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 MachOComdat<'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 MachOComdat<'data, 'file, Mach, R> where
'data: 'file,
impl<'data, 'file, Mach, R> UnwindSafe for MachOComdat<'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