identity_core::common

Trait KeyComparable

Source
pub trait KeyComparable {
    type Key: PartialEq + ?Sized;

    // Required method
    fn key(&self) -> &Self::Key;
}
Expand description

A trait for comparing types only by a certain key.

Required Associated Types§

Source

type Key: PartialEq + ?Sized

Key type for comparisons.

Required Methods§

Source

fn key(&self) -> &Self::Key

Returns a reference to the key.

Implementations on Foreign Types§

Source§

impl KeyComparable for &str

Source§

type Key = str

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for bool

Source§

type Key = bool

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for char

Source§

type Key = char

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for f32

Source§

type Key = f32

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for f64

Source§

type Key = f64

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for i8

Source§

type Key = i8

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for i16

Source§

type Key = i16

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for i32

Source§

type Key = i32

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for i64

Source§

type Key = i64

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for i128

Source§

type Key = i128

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for isize

Source§

type Key = isize

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for str

Source§

type Key = str

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for u8

Source§

type Key = u8

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for u16

Source§

type Key = u16

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for u32

Source§

type Key = u32

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for u64

Source§

type Key = u64

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for u128

Source§

type Key = u128

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for usize

Source§

type Key = usize

Source§

fn key(&self) -> &Self::Key

Source§

impl KeyComparable for String

Source§

type Key = str

Source§

fn key(&self) -> &Self::Key

Implementors§

Source§

impl KeyComparable for Url

impl KeyComparable for CoreDID

impl KeyComparable for DIDUrl

impl KeyComparable for Service

impl KeyComparable for IotaDID

impl KeyComparable for MethodRef

impl KeyComparable for VerificationMethod