use crate::collections::{
self,
slab::{self, key},
};
pub trait Recycling<T, Tag = (), const MAX: u32 = { u32::MAX }> {
unsafe fn try_with_capacity_recycling(
capacity: slab::Capacity,
) -> Result<Self, collections::AllocationError>
where
Self: Sized;
}
#[doc(hidden)]
pub trait ExternalAccess<T, Tag = (), const MAX: u32 = { u32::MAX }> {
fn entry_at(&self, index: u32) -> Option<(&T, key::Handle<Tag, MAX>)>;
fn entry_at_mut(&mut self, index: u32) -> Option<(&mut T, key::Handle<Tag, MAX>)>;
}