pub struct ActiveConfiguration { /* private fields */ }Expand description
A package’s validated declared compilation context in a filtered index.
Only a completed configured load publishes this receipt. It is not a Cargo invocation receipt, macro expansion or preferred-provider policy decision. Selection covers modeled item/module/import and associated declaration headers. Function-body statements/expressions, fields and enum variants are not cfg-transformed, and original source bytes remain unchanged.
Implementations§
Source§impl ActiveConfiguration
impl ActiveConfiguration
Sourcepub const fn target(&self) -> &CfgSelection
pub const fn target(&self) -> &CfgSelection
The declared target cfg.
Sourcepub const fn host(&self) -> Option<&CfgSelection>
pub const fn host(&self) -> Option<&CfgSelection>
The independent host cfg, when supplied.
Sourcepub fn features(&self) -> &[String]
pub fn features(&self) -> &[String]
Complete enabled features, validated against actual manifest implications.
Sourcepub fn optional_dependencies(&self) -> &[String]
pub fn optional_dependencies(&self) -> &[String]
Optional dependency aliases activated by the actual feature graph.
Sourcepub const fn target_kind(&self) -> TargetKind
pub const fn target_kind(&self) -> TargetKind
The single actual compilation target kind selected for this package.
Sourcepub fn target_name(&self) -> &str
pub fn target_name(&self) -> &str
The exact selected Cargo target name.
Trait Implementations§
Source§impl Debug for ActiveConfiguration
impl Debug for ActiveConfiguration
impl Eq for ActiveConfiguration
Source§impl PartialEq for ActiveConfiguration
impl PartialEq for ActiveConfiguration
impl StructuralPartialEq for ActiveConfiguration
Auto Trait Implementations§
impl Forget for ActiveConfiguration
impl Freeze for ActiveConfiguration
impl Move for ActiveConfiguration
impl RefUnwindSafe for ActiveConfiguration
impl Send for ActiveConfiguration
impl Sync for ActiveConfiguration
impl Unpin for ActiveConfiguration
impl UnsafeUnpin for ActiveConfiguration
impl UnwindSafe for ActiveConfiguration
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Whether this borrowed key equals the stored key.
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> EvidenceLease for T
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