Skip to main content

EntityKey

Trait EntityKey 

Source
pub trait EntityKey {
    type KeyType: Hash + Eq + ?Sized;

    // Required method
    fn key(&self) -> &Self::KeyType;
}

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EntityKey for String

Source§

type KeyType = String

Source§

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

Implementors§