pub enum AllocPolicy {
NeverRecycle,
RecycleLowest,
}
Variants§
NeverRecycle
Will not recycle released handles, regardless of whether they are tracked.
RecycleLowest
Will always attempt to re-use the lowest ID out of all returned IDs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllocPolicy
impl RefUnwindSafe for AllocPolicy
impl Send for AllocPolicy
impl Sync for AllocPolicy
impl Unpin for AllocPolicy
impl UnwindSafe for AllocPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more