[−][src]Struct cargo_toml_builder::types::NonLibTargetBuilder
Builder for NonLibTarget types
Methods
impl NonLibTargetBuilder
[src]
pub fn name(&mut self, name: &str) -> &mut Self
[src]
Sets the name of this target
pub fn path(&mut self, path: &str) -> &mut Self
[src]
Sets the path to the root for this target
pub fn test(&mut self, test: bool) -> &mut Self
[src]
Sets the test flag for this target
pub fn doctest(&mut self, doctest: bool) -> &mut Self
[src]
sets the doctest flag for this target
pub fn bench(&mut self, bench: bool) -> &mut Self
[src]
sets the bench flag for this target
pub fn doc(&mut self, doc: bool) -> &mut Self
[src]
sets the doc flag for this target
pub fn plugin(&mut self, plugin: bool) -> &mut Self
[src]
Sets the plugin flag for this target
pub fn proc_macro(&mut self, proc_macro: bool) -> &mut Self
[src]
Sets the proc-macro flag for this target
pub fn harness(&mut self, harness: bool) -> &mut Self
[src]
sets the harness flag for this target
pub fn required_feature(&mut self, feature: &str) -> &mut Self
[src]
Sets a required feature for this target
pub fn build(&self) -> NonLibTarget
[src]
Constructs a NonLibTarget
from this builder
Trait Implementations
impl PartialEq<NonLibTargetBuilder> for NonLibTargetBuilder
[src]
fn eq(&self, other: &NonLibTargetBuilder) -> bool
[src]
fn ne(&self, other: &NonLibTargetBuilder) -> bool
[src]
impl Default for NonLibTargetBuilder
[src]
fn default() -> NonLibTargetBuilder
[src]
impl Clone for NonLibTargetBuilder
[src]
fn clone(&self) -> NonLibTargetBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> From<&'a mut NonLibTargetBuilder> for NonLibTarget
[src]
fn from(t: &'a mut NonLibTargetBuilder) -> NonLibTarget
[src]
impl Debug for NonLibTargetBuilder
[src]
Auto Trait Implementations
impl Send for NonLibTargetBuilder
impl Sync for NonLibTargetBuilder
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,