Struct cargo_toml_builder::types::LibTarget
source · pub struct LibTarget { /* private fields */ }
Expand description
Represents a [lib]
table
Implementations
sourceimpl LibTarget
impl LibTarget
sourcepub fn new() -> LibTargetBuilder
pub fn new() -> LibTargetBuilder
Constructs a new builder for a lib target
sourcepub fn path(&self) -> Option<&String>
pub fn path(&self) -> Option<&String>
Returns the value of the path to the root for this lib target
sourcepub fn doctest(&self) -> Option<bool>
pub fn doctest(&self) -> Option<bool>
Returns the value of the doctest flag for this lib 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 lib target
sourcepub fn harness(&self) -> Option<bool>
pub fn harness(&self) -> Option<bool>
Returns the value of the harness flag for this lib target
sourcepub fn crate_type(&self) -> Option<CrateType>
pub fn crate_type(&self) -> Option<CrateType>
Returns the value of the crate-type for this lib target
Trait Implementations
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.
impl StructuralPartialEq for LibTarget
Auto Trait Implementations
impl RefUnwindSafe for LibTarget
impl Send for LibTarget
impl Sync for LibTarget
impl Unpin for LibTarget
impl UnwindSafe for LibTarget
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