Struct cargo_toml_builder::types::NonLibTarget
source · pub struct NonLibTarget { /* private fields */ }
Expand description
Represents [[bench]]
, [[bin]]
, [[example]]
, and [[test]]
tables
Implementations
sourceimpl NonLibTarget
impl NonLibTarget
sourcepub fn new() -> NonLibTargetBuilder
pub fn new() -> NonLibTargetBuilder
Constructs a builder for a non-lib target (bin, example, bench, test)
sourcepub fn path(&self) -> Option<&String>
pub fn path(&self) -> Option<&String>
Returns the value of the path to the root for this target
sourcepub fn proc_macro(&self) -> Option<bool>
pub fn proc_macro(&self) -> Option<bool>
Returns the value of the proc-macro flag for this target
sourcepub fn required_features(&self) -> Option<&Vec<String>>
pub fn required_features(&self) -> Option<&Vec<String>>
Returns the value of the required-features value for this target
Trait Implementations
sourceimpl Clone for NonLibTarget
impl Clone for NonLibTarget
sourcefn clone(&self) -> NonLibTarget
fn clone(&self) -> NonLibTarget
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NonLibTarget
impl Debug for NonLibTarget
sourceimpl Default for NonLibTarget
impl Default for NonLibTarget
sourcefn default() -> NonLibTarget
fn default() -> NonLibTarget
Returns the “default value” for a type. Read more
sourceimpl<'a> From<&'a NonLibTarget> for Table
impl<'a> From<&'a NonLibTarget> for Table
sourcefn from(t: &'a NonLibTarget) -> Table
fn from(t: &'a NonLibTarget) -> Table
Converts to this type from the input type.
sourceimpl<'a> From<&'a mut NonLibTargetBuilder> for NonLibTarget
impl<'a> From<&'a mut NonLibTargetBuilder> for NonLibTarget
sourcefn from(t: &'a mut NonLibTargetBuilder) -> NonLibTarget
fn from(t: &'a mut NonLibTargetBuilder) -> NonLibTarget
Converts to this type from the input type.
sourceimpl PartialEq<NonLibTarget> for NonLibTarget
impl PartialEq<NonLibTarget> for NonLibTarget
sourcefn eq(&self, other: &NonLibTarget) -> bool
fn eq(&self, other: &NonLibTarget) -> bool
impl StructuralPartialEq for NonLibTarget
Auto Trait Implementations
impl RefUnwindSafe for NonLibTarget
impl Send for NonLibTarget
impl Sync for NonLibTarget
impl Unpin for NonLibTarget
impl UnwindSafe for NonLibTarget
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more