pub struct NonLibTargetBuilder { /* private fields */ }Expand description
Builder for NonLibTarget types
Implementations§
Source§impl 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§
Source§impl Clone for NonLibTargetBuilder
impl Clone for NonLibTargetBuilder
Source§fn clone(&self) -> NonLibTargetBuilder
fn clone(&self) -> NonLibTargetBuilder
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 NonLibTargetBuilder
impl Debug for NonLibTargetBuilder
Source§impl Default for NonLibTargetBuilder
impl Default for NonLibTargetBuilder
Source§fn default() -> NonLibTargetBuilder
fn default() -> NonLibTargetBuilder
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a mut NonLibTargetBuilder> for NonLibTarget
impl<'a> From<&'a mut NonLibTargetBuilder> for NonLibTarget
Source§fn from(t: &'a mut NonLibTargetBuilder) -> NonLibTarget
fn from(t: &'a mut NonLibTargetBuilder) -> NonLibTarget
Converts to this type from the input type.
Source§impl PartialEq for NonLibTargetBuilder
impl PartialEq for NonLibTargetBuilder
Source§fn eq(&self, other: &NonLibTargetBuilder) -> bool
fn eq(&self, other: &NonLibTargetBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NonLibTargetBuilder
Auto Trait Implementations§
impl Freeze for NonLibTargetBuilder
impl RefUnwindSafe for NonLibTargetBuilder
impl Send for NonLibTargetBuilder
impl Sync for NonLibTargetBuilder
impl Unpin for NonLibTargetBuilder
impl UnsafeUnpin for NonLibTargetBuilder
impl UnwindSafe for NonLibTargetBuilder
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