PoolItem

Trait PoolItem 

Source
pub trait PoolItem:
    Hash
    + Eq
    + Sync { }
Expand description

Trait for items that can be stored and retrieved from an item pool.

Items must be:

  • Hash: Required for storing in HashSet to ensure uniqueness
  • Eq: Required for equality comparisons
  • Sync: Required for safe concurrent access across threads

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> PoolItem for T
where T: Hash + Eq + Sync,

Blanket implementation for all types that satisfy the constraints.