pub struct MetadataKey(/* private fields */);
Expand description
Keys for the [metadata]
table
Implementations§
Source§impl MetadataKey
impl MetadataKey
Sourcepub fn for_checksum(dep: &Dependency) -> Self
pub fn for_checksum(dep: &Dependency) -> Self
Create a metadata key for a checksum for the given dependency
Sourcepub fn is_checksum(&self) -> bool
pub fn is_checksum(&self) -> bool
Is this metadata key a checksum entry?
Sourcepub fn checksum_dependency(&self) -> Result<Dependency>
pub fn checksum_dependency(&self) -> Result<Dependency>
Get the dependency for a particular checksum value (if applicable)
Trait Implementations§
Source§impl AsRef<str> for MetadataKey
impl AsRef<str> for MetadataKey
Source§impl Clone for MetadataKey
impl Clone for MetadataKey
Source§fn clone(&self) -> MetadataKey
fn clone(&self) -> MetadataKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetadataKey
impl Debug for MetadataKey
Source§impl<'de> Deserialize<'de> for MetadataKey
impl<'de> Deserialize<'de> for MetadataKey
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MetadataKey
impl Display for MetadataKey
Source§impl FromStr for MetadataKey
impl FromStr for MetadataKey
Source§impl Hash for MetadataKey
impl Hash for MetadataKey
Source§impl Ord for MetadataKey
impl Ord for MetadataKey
Source§fn cmp(&self, other: &MetadataKey) -> Ordering
fn cmp(&self, other: &MetadataKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetadataKey
impl PartialEq for MetadataKey
Source§impl PartialOrd for MetadataKey
impl PartialOrd for MetadataKey
Source§impl Serialize for MetadataKey
impl Serialize for MetadataKey
Source§impl TryFrom<&MetadataKey> for Dependency
impl TryFrom<&MetadataKey> for Dependency
Source§fn try_from(key: &MetadataKey) -> Result<Dependency>
fn try_from(key: &MetadataKey) -> Result<Dependency>
Performs the conversion.
impl Eq for MetadataKey
impl StructuralPartialEq for MetadataKey
Auto Trait Implementations§
impl Freeze for MetadataKey
impl RefUnwindSafe for MetadataKey
impl Send for MetadataKey
impl Sync for MetadataKey
impl Unpin for MetadataKey
impl UnwindSafe for MetadataKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.