[][src]Struct cargo_toml_builder::types::NonLibTargetBuilder

pub struct NonLibTargetBuilder { /* fields omitted */ }

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]

impl Default for NonLibTargetBuilder[src]

impl Clone for 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]

impl Debug for NonLibTargetBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]