BorrowedKey

Trait 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 Hash for dyn BorrowedKey + '_

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§