[][src]Struct cargo_toml_builder::types::NonLibTarget

pub struct NonLibTarget { /* fields omitted */ }

Represents [[bench]], [[bin]], [[example]], and [[test]] tables

Methods

impl NonLibTarget[src]

pub fn new() -> NonLibTargetBuilder[src]

Constructs a builder for a non-lib target (bin, example, bench, test)

pub fn name(&self) -> Option<&String>[src]

Returns the value of the name of this target

pub fn path(&self) -> Option<&String>[src]

Returns the value of the path to the root for this target

pub fn test(&self) -> Option<bool>[src]

Returns the value of the test flag for this target

pub fn doctest(&self) -> Option<bool>[src]

Returns the value of the doctest flag for this target

pub fn bench(&self) -> Option<bool>[src]

Returns the value of the bench flag for this target

pub fn doc(&self) -> Option<bool>[src]

Returns the value of the doc flag for this target

pub fn plugin(&self) -> Option<bool>[src]

Returns the value of the plugin flag for this target

pub fn proc_macro(&self) -> Option<bool>[src]

Returns the value of the proc-macro flag for this target

pub fn harness(&self) -> Option<bool>[src]

Returns the value of the harness flag for this target

pub fn required_features(&self) -> Option<&Vec<String>>[src]

Returns the value of the required-features value for this target

Trait Implementations

impl<'a> From<&'a mut NonLibTargetBuilder> for NonLibTarget[src]

impl<'a> From<&'a NonLibTarget> for Table[src]

impl Default for NonLibTarget[src]

impl Clone for NonLibTarget[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<NonLibTarget> for NonLibTarget[src]

impl Debug for NonLibTarget[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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]