Trait weak_table::traits::WeakKey
[−]
[src]
pub trait WeakKey: WeakElement { type Key: Eq + Hash; fn with_key<F, R>(view: &Self::Strong, f: F) -> R
where
F: FnOnce(&Self::Key) -> R; }
Interface for elements that can act as keys in weak hash tables.
Associated Types
Required Methods
fn with_key<F, R>(view: &Self::Strong, f: F) -> R where
F: FnOnce(&Self::Key) -> R,
F: FnOnce(&Self::Key) -> R,
Borrows a view of the key.