pub struct LockedBinding { /* private fields */ }Expand description
A source/manifest identity computed from a checked load, not from caller labels. Provenance alone does not imply active configuration; the separate optional configuration receipt records declared filtering, never provider policy.
Implementations§
Source§impl LockedBinding
impl LockedBinding
Sourcepub const fn configuration(&self) -> Option<&ActiveConfiguration>
pub const fn configuration(&self) -> Option<&ActiveConfiguration>
Validated declared context, present only for a definition-filtered load.
Sourcepub fn configurations(&self) -> &[ActiveConfiguration]
pub fn configurations(&self) -> &[ActiveConfiguration]
Every explicitly selected target context, empty for an unconfigured load.
Sourcepub fn configuration_for(
&self,
kind: TargetKind,
name: &str,
) -> Option<&ActiveConfiguration>
pub fn configuration_for( &self, kind: TargetKind, name: &str, ) -> Option<&ActiveConfiguration>
The exact selected context for an actual target kind and Cargo name.
Sourcepub const fn row(&self) -> LockedPackageId
pub const fn row(&self) -> LockedPackageId
The row in the catalog supplied to this load.
Sourcepub const fn source(&self) -> Option<&LockedSource>
pub const fn source(&self) -> Option<&LockedSource>
Exact external source evidence, absent for explicitly associated local roots.
Trait Implementations§
Source§impl Debug for LockedBinding
impl Debug for LockedBinding
impl Eq for LockedBinding
Source§impl PartialEq for LockedBinding
impl PartialEq for LockedBinding
impl StructuralPartialEq for LockedBinding
Auto Trait Implementations§
impl Forget for LockedBinding
impl Freeze for LockedBinding
impl Move for LockedBinding
impl RefUnwindSafe for LockedBinding
impl Send for LockedBinding
impl Sync for LockedBinding
impl Unpin for LockedBinding
impl UnsafeUnpin for LockedBinding
impl UnwindSafe for LockedBinding
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