Struct object::read::macho::DyldCacheImage[][src]

pub struct DyldCacheImage<'data, E = Endianness, R = &'data [u8]> where
    E: Endian,
    R: ReadRef<'data>, 
{ /* fields omitted */ }
Expand description

One image (dylib) from inside the dyld shared cache.

Implementations

impl<'data, E, R> DyldCacheImage<'data, E, R> where
    E: Endian,
    R: ReadRef<'data>, 
[src]

pub fn path(&self) -> Result<&'data str>[src]

The file system path of this image.

pub fn file_offset(&self) -> Result<u64>[src]

The offset in the dyld cache file where this image starts.

pub fn parse_object(&self) -> Result<File<'data, R>>[src]

Parse this image into an Object.

Trait Implementations

impl<'data, E: Debug, R: Debug> Debug for DyldCacheImage<'data, E, R> where
    E: Endian,
    R: ReadRef<'data>, 
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'data, E, R> RefUnwindSafe for DyldCacheImage<'data, E, R> where
    E: RefUnwindSafe,
    R: RefUnwindSafe

impl<'data, E, R> Send for DyldCacheImage<'data, E, R> where
    E: Send + Sync,
    R: Send

impl<'data, E, R> Sync for DyldCacheImage<'data, E, R> where
    E: Sync,
    R: Sync

impl<'data, E, R> Unpin for DyldCacheImage<'data, E, R> where
    E: Unpin,
    R: Unpin

impl<'data, E, R> UnwindSafe for DyldCacheImage<'data, E, R> where
    E: RefUnwindSafe + UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.