pub struct MultiArch<'a> {
pub narches: usize,
/* private fields */
}
Expand description
A Mach-o multi architecture (Fat) binary container
Fields§
§narches: usize
Implementations§
Source§impl<'a> MultiArch<'a>
impl<'a> MultiArch<'a>
Sourcepub fn iter_arches(&self) -> FatArchIterator<'_> ⓘ
pub fn iter_arches(&self) -> FatArchIterator<'_> ⓘ
Iterate every fat arch header
Sourcepub fn get(&self, index: usize) -> Result<SingleArch<'a>>
pub fn get(&self, index: usize) -> Result<SingleArch<'a>>
Try to get the Mach-o binary at index
pub fn find<F: Fn(Result<FatArch>) -> bool>( &'a self, f: F, ) -> Option<Result<SingleArch<'a>>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MultiArch<'a>
impl<'a> RefUnwindSafe for MultiArch<'a>
impl<'a> Send for MultiArch<'a>
impl<'a> Sync for MultiArch<'a>
impl<'a> Unpin for MultiArch<'a>
impl<'a> UnwindSafe for MultiArch<'a>
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