pub struct LockedPackage { /* private fields */ }Expand description
One complete locked package identity and its uniquely selected outgoing edges.
An absent source denotes a local lock row. Its actual manifest location still has to be supplied; absence is not a universal local source identity.
Implementations§
Source§impl LockedPackage
impl LockedPackage
Sourcepub const fn id(&self) -> LockedPackageId
pub const fn id(&self) -> LockedPackageId
The load-local row identity.
Sourcepub fn version(&self) -> &str
pub fn version(&self) -> &str
The validated canonical Cargo version, including prerelease and build text.
Sourcepub const fn source(&self) -> Option<&LockedSource>
pub const fn source(&self) -> Option<&LockedSource>
The complete external source identity, or a local row awaiting binding.
Sourcepub const fn checksum(&self) -> Option<&[u8; 32]>
pub const fn checksum(&self) -> Option<&[u8; 32]>
The recorded archive checksum, not authentication of a supplied tree.
Sourcepub fn dependencies(&self) -> &[LockedPackageId]
pub fn dependencies(&self) -> &[LockedPackageId]
Actual outgoing edges after unique full-identity selection.
Trait Implementations§
Source§impl Debug for LockedPackage
impl Debug for LockedPackage
impl Eq for LockedPackage
Source§impl PartialEq for LockedPackage
impl PartialEq for LockedPackage
impl StructuralPartialEq for LockedPackage
Auto Trait Implementations§
impl Forget for LockedPackage
impl Freeze for LockedPackage
impl Move for LockedPackage
impl RefUnwindSafe for LockedPackage
impl Send for LockedPackage
impl Sync for LockedPackage
impl Unpin for LockedPackage
impl UnsafeUnpin for LockedPackage
impl UnwindSafe for LockedPackage
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