Skip to main content

PtrWeakHashSet

Type Alias PtrWeakHashSet 

Source
type PtrWeakHashSet<T> = PtrWeakHashSet<T, RandomState>;
Expand description

Alias to force use of RandomState, regardless of features enabled in weak_tables.

See https://github.com/tov/weak-table-rs/issues/23 for discussion.

(We could probably get away with a weaker hash function in this case, since the attacker probably doesn’t have control over our pointers.)

Aliased Type§

struct PtrWeakHashSet<T>(/* private fields */);