pub enum ActionKind {
CompileC,
CompileCpp,
ArchiveStaticLibrary,
LinkExecutable,
}Expand description
Categorization of a build action. Currently a closed set; new variants require explicit handling by every backend.
Variants§
CompileC
Compile a single C translation unit (.c) to an object
file. Driven by the C compiler with -std=c11 plus the
language-neutral profile flags.
CompileCpp
Compile a single C++ translation unit (.cc / .cpp /
.cxx / .c++ / .C) to an object file. Driven by the
C++ compiler with -std=c++17 plus the language-neutral
profile flags.
ArchiveStaticLibrary
Archive a set of object files into a static library.
LinkExecutable
Link object files plus static archives into an executable.
The link-driver language (C vs. C++) is encoded in the
action’s command (the first argument is the chosen
compiler driver), so backends do not need to consult any
extra metadata to render the action.
Trait Implementations§
Source§impl Clone for ActionKind
impl Clone for ActionKind
Source§fn clone(&self) -> ActionKind
fn clone(&self) -> ActionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActionKind
impl Debug for ActionKind
Source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
Source§fn eq(&self, other: &ActionKind) -> bool
fn eq(&self, other: &ActionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ActionKind
impl Eq for ActionKind
impl StructuralPartialEq for ActionKind
Auto Trait Implementations§
impl Freeze for ActionKind
impl RefUnwindSafe for ActionKind
impl Send for ActionKind
impl Sync for ActionKind
impl Unpin for ActionKind
impl UnsafeUnpin for ActionKind
impl UnwindSafe for ActionKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.