pub trait Entry<'a> {
type Key;
type Value;
// Required methods
fn key(&self) -> &Self::Key;
fn or_insert(self, default: Self::Value) -> &'a mut Self::Value;
}Required Associated Types§
Required Methods§
fn key(&self) -> &Self::Key
fn or_insert(self, default: Self::Value) -> &'a mut Self::Value
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".