Struct guppy::graph::BuildTarget
source · 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
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