Enum object::read::macho::dyld_cache::DyldSubCacheSlice
source · #[non_exhaustive]pub enum DyldSubCacheSlice<'data, E: Endian> {
V1(&'data [DyldSubCacheEntryV1<E>]),
V2(&'data [DyldSubCacheEntryV2<E>]),
}
Expand description
A slice of structs describing each subcache. The struct gained an additional field (the file suffix) in dyld-1042.1 (macOS 13 / iOS 16), so this is an enum of the two possible slice types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1(&'data [DyldSubCacheEntryV1<E>])
V1, used between dyld-940 and dyld-1042.1.
V2(&'data [DyldSubCacheEntryV2<E>])
V2, used since dyld-1042.1.
Trait Implementations§
source§impl<'data, E: Clone + Endian> Clone for DyldSubCacheSlice<'data, E>
impl<'data, E: Clone + Endian> Clone for DyldSubCacheSlice<'data, E>
source§fn clone(&self) -> DyldSubCacheSlice<'data, E>
fn clone(&self) -> DyldSubCacheSlice<'data, E>
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 moreimpl<'data, E: Copy + Endian> Copy for DyldSubCacheSlice<'data, E>
Auto Trait Implementations§
impl<'data, E> Freeze for DyldSubCacheSlice<'data, E>
impl<'data, E> RefUnwindSafe for DyldSubCacheSlice<'data, E>where
E: RefUnwindSafe,
impl<'data, E> Send for DyldSubCacheSlice<'data, E>where
E: Sync,
impl<'data, E> Sync for DyldSubCacheSlice<'data, E>where
E: Sync,
impl<'data, E> Unpin for DyldSubCacheSlice<'data, E>
impl<'data, E> UnwindSafe for DyldSubCacheSlice<'data, E>where
E: 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
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
)