pub struct BuildTarget<'g> { /* private fields */ }
Expand description
A build target in a package.
A build target consists of one or more source files which can be compiled into a crate.
For more, see Cargo Targets in the Cargo reference.
Implementations§
Source§impl<'g> BuildTarget<'g>
impl<'g> BuildTarget<'g>
Sourcepub fn id(&self) -> BuildTargetId<'g>
pub fn id(&self) -> BuildTargetId<'g>
Returns the unique identifier for this build target.
Sourcepub fn kind(&self) -> BuildTargetKind<'g>
pub fn kind(&self) -> BuildTargetKind<'g>
Returns the kind of this build target.
Sourcepub fn required_features(&self) -> &'g [String]
pub fn required_features(&self) -> &'g [String]
Returns the features required for this build target.
This setting has no effect on the library target.
For more, see The required-features
field
in the Cargo reference.
Auto Trait Implementations§
impl<'g> Freeze for BuildTarget<'g>
impl<'g> RefUnwindSafe for BuildTarget<'g>
impl<'g> Send for BuildTarget<'g>
impl<'g> Sync for BuildTarget<'g>
impl<'g> Unpin for BuildTarget<'g>
impl<'g> UnwindSafe for BuildTarget<'g>
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