enum MaybeLtoModules<B: WriteBackendMethods> {
NoLto(CompiledModules),
FatLto {
cgcx: CodegenContext,
needs_fat_lto: Vec<FatLtoInput<B>>,
},
ThinLto {
cgcx: CodegenContext,
needs_thin_lto: Vec<ThinLtoInput<B>>,
allocator_module: Option<CompiledModule>,
},
}Variants§
NoLto(CompiledModules)
FatLto
ThinLto
Fields
§
cgcx: CodegenContext§
needs_thin_lto: Vec<ThinLtoInput<B>>§
allocator_module: Option<CompiledModule>Auto Trait Implementations§
impl<B> DynSend for MaybeLtoModules<B>where
Vec<CompiledModule>: DynSend,
Vec<u8>: DynSend,
Vec<CrateType>: DynSend,
Arc<OutputFilenames>: DynSend,
Arc<ModuleConfig>: DynSend,
Vec<String>: DynSend,
NonZeroUsizeInner: DynSend,
Vec<FatLtoInput<B>>: DynSend,
Vec<ThinLtoInput<B>>: DynSend,
impl<B> DynSync for MaybeLtoModules<B>where
Vec<CompiledModule>: DynSync,
Vec<u8>: DynSync,
Vec<CrateType>: DynSync,
Arc<OutputFilenames>: DynSync,
Arc<ModuleConfig>: DynSync,
Vec<String>: DynSync,
NonZeroUsizeInner: DynSync,
Vec<FatLtoInput<B>>: DynSync,
Vec<ThinLtoInput<B>>: DynSync,
impl<B> Forget for MaybeLtoModules<B>
impl<B> Freeze for MaybeLtoModules<B>where
*const u8 is !null: Freeze,
PhantomData<CompiledModule>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<CrateType>: Freeze,
*const ArcInner<OutputFilenames> is !null: Freeze,
PhantomData<ArcInner<OutputFilenames>>: Freeze,
*const ArcInner<ModuleConfig> is !null: Freeze,
PhantomData<ArcInner<ModuleConfig>>: Freeze,
PhantomData<String>: Freeze,
NonZero<usize>: Freeze,
PhantomData<FatLtoInput<B>>: Freeze,
PhantomData<ThinLtoInput<B>>: Freeze,
impl<B> Move for MaybeLtoModules<B>
impl<B> RefUnwindSafe for MaybeLtoModules<B>where
Atomic<usize>: RefUnwindSafe,
NonZero<usize>: RefUnwindSafe,
<B as WriteBackendMethods>::Module: RefUnwindSafe,
<B as WriteBackendMethods>::ModuleBuffer: RefUnwindSafe,
impl<B> Send for MaybeLtoModules<B>where
RawVecInner: Send,
Arc<OutputFilenames>: Send,
Arc<ModuleConfig>: Send,
NonZero<usize>: Send,
<B as WriteBackendMethods>::Module: Send,
<B as WriteBackendMethods>::ModuleBuffer: Send,
MmapInner: Send,
RawTable<(String, String)>: Send,
impl<B> Sync for MaybeLtoModules<B>where
RawVecInner: Sync,
Arc<OutputFilenames>: Sync,
Arc<ModuleConfig>: Sync,
NonZero<usize>: Sync,
<B as WriteBackendMethods>::Module: Sync,
<B as WriteBackendMethods>::ModuleBuffer: Sync,
MmapInner: Sync,
RawTable<(String, String)>: Sync,
impl<B> Unpin for MaybeLtoModules<B>where
*const u8 is !null: Unpin,
Arc<OutputFilenames>: Unpin,
Arc<ModuleConfig>: Unpin,
NonZero<usize>: Unpin,
<B as WriteBackendMethods>::Module: Unpin,
<B as WriteBackendMethods>::ModuleBuffer: Unpin,
*mut c_void: Unpin,
impl<B> UnsafeUnpin for MaybeLtoModules<B>where
*const u8 is !null: UnsafeUnpin,
PhantomData<CompiledModule>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<CrateType>: UnsafeUnpin,
*const ArcInner<OutputFilenames> is !null: UnsafeUnpin,
PhantomData<ArcInner<OutputFilenames>>: UnsafeUnpin,
*const ArcInner<ModuleConfig> is !null: UnsafeUnpin,
PhantomData<ArcInner<ModuleConfig>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
PhantomData<FatLtoInput<B>>: UnsafeUnpin,
PhantomData<ThinLtoInput<B>>: UnsafeUnpin,
impl<B> UnwindSafe for MaybeLtoModules<B>where
RawVecInner: UnwindSafe,
Arc<OutputFilenames>: UnwindSafe,
Arc<ModuleConfig>: UnwindSafe,
NonZero<usize>: UnwindSafe,
<B as WriteBackendMethods>::Module: UnwindSafe,
<B as WriteBackendMethods>::ModuleBuffer: UnwindSafe,
*mut c_void: UnwindSafe,
HashMap<String, String, FxBuildHasher>: UnwindSafe,
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<K> IntoQueryKey<K> for K
impl<K> IntoQueryKey<K> for K
Source§fn into_query_key(self) -> K
fn into_query_key(self) -> K
Argument conversion from
Self to K.
This should always be a very cheap conversion, e.g. LocalDefId::to_def_id.Source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
Source§impl<I, T> UpcastFrom<I, T> for T
impl<I, T> UpcastFrom<I, T> for T
fn upcast_from(from: T, _tcx: I) -> T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 368 bytes
Size for each variant:
NoLto: 208 bytesFatLto: 200 bytesThinLto: 368 bytes