Enum rustc_codegen_ssa::back::write::MainThreadState
source · enum MainThreadState {
Idle,
Codegenning,
Lending,
}
Variants§
Idle
Doing nothing.
Codegenning
Doing codegen, i.e. MIR-to-LLVM-IR conversion.
Lending
Idle, but lending the compiler process’s Token to an LLVM thread so it can do useful work.
Trait Implementations§
source§impl Clone for MainThreadState
impl Clone for MainThreadState
source§fn clone(&self) -> MainThreadState
fn clone(&self) -> MainThreadState
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 moresource§impl Debug for MainThreadState
impl Debug for MainThreadState
source§impl PartialEq<MainThreadState> for MainThreadState
impl PartialEq<MainThreadState> for MainThreadState
source§fn eq(&self, other: &MainThreadState) -> bool
fn eq(&self, other: &MainThreadState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MainThreadState
impl StructuralPartialEq for MainThreadState
Auto Trait Implementations§
impl RefUnwindSafe for MainThreadState
impl Send for MainThreadState
impl Sync for MainThreadState
impl Unpin for MainThreadState
impl UnwindSafe for MainThreadState
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
impl<T> CodegenObject for Twhere T: Copy + PartialEq<T> + Debug,
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: 1 byte
Size for each variant:
Idle
: 0 bytesCodegenning
: 0 bytesLending
: 0 bytes