pub struct LibTargetBuilder { /* private fields */ }Expand description
Builder for LibTarget types
Implementations§
Source§impl 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§
Source§impl Clone for LibTargetBuilder
impl Clone for LibTargetBuilder
Source§fn clone(&self) -> LibTargetBuilder
fn clone(&self) -> LibTargetBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibTargetBuilder
impl Debug for LibTargetBuilder
Source§impl Default for LibTargetBuilder
impl Default for LibTargetBuilder
Source§fn default() -> LibTargetBuilder
fn default() -> LibTargetBuilder
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a mut LibTargetBuilder> for LibTarget
impl<'a> From<&'a mut LibTargetBuilder> for LibTarget
Source§fn from(target: &'a mut LibTargetBuilder) -> LibTarget
fn from(target: &'a mut LibTargetBuilder) -> LibTarget
Converts to this type from the input type.
Source§impl PartialEq for LibTargetBuilder
impl PartialEq for LibTargetBuilder
Source§fn eq(&self, other: &LibTargetBuilder) -> bool
fn eq(&self, other: &LibTargetBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibTargetBuilder
Auto Trait Implementations§
impl Freeze for LibTargetBuilder
impl RefUnwindSafe for LibTargetBuilder
impl Send for LibTargetBuilder
impl Sync for LibTargetBuilder
impl Unpin for LibTargetBuilder
impl UnsafeUnpin for LibTargetBuilder
impl UnwindSafe for LibTargetBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more