pub enum Phase {
Preprocess,
Compile,
Assemble,
Link,
}Expand description
A step in the compilation of one input.
The order of the variants is the order of the pipeline, and the derived Ord is relied on
when a mode flag truncates a sequence. Compile covers parsing through code generation,
which is one phase from the driver’s point of view because nothing between them can be
stopped at from the command line.
Variants§
Preprocess
Translation phases 1 to 4, producing preprocessed source.
Compile
Parse, check, optimize and generate code, producing assembly.
Assemble
Assemble, producing an object file.
Link
Link the objects into an executable or a shared library.
Implementations§
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
Source§impl Ord for Phase
impl Ord for Phase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Phase
impl PartialOrd for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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