pub enum BuildTarget {
Bin(String),
Lib,
Example(String),
AllBins,
All,
}Expand description
Specifies what to build.
Variants§
Bin(String)
Build a specific binary by name
Lib
Build the library
Example(String)
Build a specific example
AllBins
Build all binaries
All
Build all (default cargo behavior)
Implementations§
Source§impl BuildTarget
impl BuildTarget
Sourcepub fn to_cargo_args(&self) -> Vec<&str>
pub fn to_cargo_args(&self) -> Vec<&str>
Converts this target to cargo command-line arguments
Trait Implementations§
Source§impl Clone for BuildTarget
impl Clone for BuildTarget
Source§fn clone(&self) -> BuildTarget
fn clone(&self) -> BuildTarget
Returns a duplicate 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 BuildTarget
impl Debug for BuildTarget
Source§impl PartialEq for BuildTarget
impl PartialEq for BuildTarget
impl Eq for BuildTarget
impl StructuralPartialEq for BuildTarget
Auto Trait Implementations§
impl Freeze for BuildTarget
impl RefUnwindSafe for BuildTarget
impl Send for BuildTarget
impl Sync for BuildTarget
impl Unpin for BuildTarget
impl UnsafeUnpin for BuildTarget
impl UnwindSafe for BuildTarget
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.