Struct cargo_toml_builder::types::LibTargetBuilder
source · pub struct LibTargetBuilder { /* private fields */ }
Expand description
Builder for LibTarget types
Implementations
sourceimpl LibTargetBuilder
impl LibTargetBuilder
sourcepub fn doctest(&mut self, doctest: bool) -> &mut Self
pub fn doctest(&mut self, doctest: bool) -> &mut Self
Sets the doctest flag for this lib target
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 lib target
sourcepub fn harness(&mut self, harness: bool) -> &mut Self
pub fn harness(&mut self, harness: bool) -> &mut Self
Sets the harness flag for this lib target
sourcepub fn crate_type(&mut self, crate_type: CrateType) -> &mut Self
pub fn crate_type(&mut self, crate_type: CrateType) -> &mut Self
Sets the crate-type for this lib target
Trait Implementations
sourceimpl Clone for LibTargetBuilder
impl Clone for LibTargetBuilder
sourcefn clone(&self) -> LibTargetBuilder
fn clone(&self) -> LibTargetBuilder
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 LibTargetBuilder
impl Debug for LibTargetBuilder
sourceimpl Default for LibTargetBuilder
impl Default for LibTargetBuilder
sourcefn default() -> LibTargetBuilder
fn default() -> LibTargetBuilder
Returns the “default value” for a type. Read more
sourceimpl<'a> From<&'a mut LibTargetBuilder> for LibTarget
impl<'a> From<&'a mut LibTargetBuilder> for LibTarget
sourcefn from(target: &'a mut LibTargetBuilder) -> LibTarget
fn from(target: &'a mut LibTargetBuilder) -> LibTarget
Converts to this type from the input type.
sourceimpl PartialEq<LibTargetBuilder> for LibTargetBuilder
impl PartialEq<LibTargetBuilder> for LibTargetBuilder
sourcefn eq(&self, other: &LibTargetBuilder) -> bool
fn eq(&self, other: &LibTargetBuilder) -> bool
impl StructuralPartialEq for LibTargetBuilder
Auto Trait Implementations
impl RefUnwindSafe for LibTargetBuilder
impl Send for LibTargetBuilder
impl Sync for LibTargetBuilder
impl Unpin for LibTargetBuilder
impl UnwindSafe for LibTargetBuilder
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