[][src]Struct cargo_toml_builder::types::LibTarget

pub struct LibTarget { /* fields omitted */ }

Represents a [lib] table

Methods

impl LibTarget[src]

pub fn new() -> LibTargetBuilder[src]

Constructs a new builder for a lib target

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

Returns the value of the name of this lib target

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

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

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

Returns the value of the test flag for this lib target

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

Returns the value of the doctest flag for this lib target

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

Returns the value of the bench flag for this lib target

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

Returns the value of the doc flag for this lib target

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

Returns the value of the plugin flag for this lib target

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

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

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

Returns the value of the harness flag for this lib target

pub fn crate_type(&self) -> Option<CrateType>[src]

Returns the value of the crate-type for this lib target

Trait Implementations

impl PartialEq<LibTarget> for LibTarget[src]

impl Default for LibTarget[src]

impl Clone for LibTarget[src]

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

Performs copy-assignment from source. Read more

impl<'a> From<&'a mut LibTargetBuilder> for LibTarget[src]

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

impl Debug for LibTarget[src]

Auto Trait Implementations

impl Send for LibTarget

impl Sync for LibTarget

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]