[−][src]Struct cargo_toml_builder::types::LibTarget
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(&self) -> 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]
fn from(target: &'a mut LibTargetBuilder) -> LibTarget
[src]
impl<'a> From<&'a LibTarget> for Table
[src]
impl Debug for LibTarget
[src]
Auto Trait Implementations
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,