Trait wac_types::BorrowedKey

source ·
pub trait BorrowedKey {
    // Required method
    fn borrowed_key(&self) -> BorrowedPackageKey<'_>;
}
Expand description

A trait implemented by types that can be borrowed as a package key.

Required Methods§

source

fn borrowed_key(&self) -> BorrowedPackageKey<'_>

Borrows the key as a borrowed package key.

Trait Implementations§

source§

impl<'a> Borrow<dyn BorrowedKey + 'a> for PackageKey

source§

fn borrow(&self) -> &(dyn BorrowedKey + 'a)

Immutably borrows from an owned value. Read more
source§

impl<'a> Hash for dyn BorrowedKey + 'a

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
source§

impl PartialEq for dyn BorrowedKey + '_

source§

fn eq(&self, other: &dyn BorrowedKey) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for dyn BorrowedKey + '_

Implementors§