pub trait Key: Copy + PartialEq {
type Value;
type Owner: Owner<Key = Self>;
// Required methods
fn owner(self) -> Self::Owner;
fn map<R>(self, f: impl FnOnce(&Self::Value) -> R) -> R;
fn map_mut<R>(self, f: impl FnOnce(&mut Self::Value) -> R) -> R;
}
Required Associated Types§
Required Methods§
fn owner(self) -> Self::Owner
fn map<R>(self, f: impl FnOnce(&Self::Value) -> R) -> R
fn map_mut<R>(self, f: impl FnOnce(&mut Self::Value) -> R) -> R
Object Safety§
This trait is not object safe.