pub struct NonLibTarget { /* private fields */ }Expand description
Represents [[bench]], [[bin]], [[example]], and [[test]] tables
Implementations§
Source§impl NonLibTarget
impl NonLibTarget
Sourcepub fn new() -> NonLibTargetBuilder
pub fn new() -> NonLibTargetBuilder
Constructs a builder for a non-lib target (bin, example, bench, test)
Sourcepub fn path(&self) -> Option<&String>
pub fn path(&self) -> Option<&String>
Returns the value of the path to the root for this 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 target
Sourcepub fn required_features(&self) -> Option<&Vec<String>>
pub fn required_features(&self) -> Option<&Vec<String>>
Returns the value of the required-features value for this target
Trait Implementations§
Source§impl Clone for NonLibTarget
impl Clone for NonLibTarget
Source§fn clone(&self) -> NonLibTarget
fn clone(&self) -> NonLibTarget
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 NonLibTarget
impl Debug for NonLibTarget
Source§impl Default for NonLibTarget
impl Default for NonLibTarget
Source§fn default() -> NonLibTarget
fn default() -> NonLibTarget
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a NonLibTarget> for Table
impl<'a> From<&'a NonLibTarget> for Table
Source§fn from(t: &'a NonLibTarget) -> Table
fn from(t: &'a NonLibTarget) -> Table
Converts to this type from the input type.
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 NonLibTarget
impl PartialEq for NonLibTarget
Source§fn eq(&self, other: &NonLibTarget) -> bool
fn eq(&self, other: &NonLibTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NonLibTarget
Auto Trait Implementations§
impl Freeze for NonLibTarget
impl RefUnwindSafe for NonLibTarget
impl Send for NonLibTarget
impl Sync for NonLibTarget
impl Unpin for NonLibTarget
impl UnsafeUnpin for NonLibTarget
impl UnwindSafe for NonLibTarget
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