Struct cargo_toml_builder::types::NonLibTargetBuilder
source · pub struct NonLibTargetBuilder { /* private fields */ }
Expand description
Builder for NonLibTarget types
Implementations
sourceimpl NonLibTargetBuilder
impl NonLibTargetBuilder
sourcepub fn proc_macro(&mut self, proc_macro: bool) -> &mut Self
pub fn proc_macro(&mut self, proc_macro: bool) -> &mut Self
Sets the proc-macro flag for this target
sourcepub fn required_feature(&mut self, feature: &str) -> &mut Self
pub fn required_feature(&mut self, feature: &str) -> &mut Self
Sets a required feature for this target
sourcepub fn build(&self) -> NonLibTarget
pub fn build(&self) -> NonLibTarget
Constructs a NonLibTarget
from this builder
Trait Implementations
sourceimpl Clone for NonLibTargetBuilder
impl Clone for NonLibTargetBuilder
sourcefn clone(&self) -> NonLibTargetBuilder
fn clone(&self) -> NonLibTargetBuilder
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 NonLibTargetBuilder
impl Debug for NonLibTargetBuilder
sourceimpl Default for NonLibTargetBuilder
impl Default for NonLibTargetBuilder
sourcefn default() -> NonLibTargetBuilder
fn default() -> NonLibTargetBuilder
Returns the “default value” for a type. Read more
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<NonLibTargetBuilder> for NonLibTargetBuilder
impl PartialEq<NonLibTargetBuilder> for NonLibTargetBuilder
sourcefn eq(&self, other: &NonLibTargetBuilder) -> bool
fn eq(&self, other: &NonLibTargetBuilder) -> bool
impl StructuralPartialEq for NonLibTargetBuilder
Auto Trait Implementations
impl RefUnwindSafe for NonLibTargetBuilder
impl Send for NonLibTargetBuilder
impl Sync for NonLibTargetBuilder
impl Unpin for NonLibTargetBuilder
impl UnwindSafe for NonLibTargetBuilder
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