[][src]Module nitric_component::allocator

Module for defining the allocator interface and its traits.

This type actually has a top-level trait (Allocator), but most of its functionality is still split up into traits.

Structs

Merger

A type to ensure IDs cannot be deleted while they are wrapped in CheckedId.

PhantomAllocator

Phantom allocator type required to implement Id for wrapper IDs that uphold additional guarantees. This can never be instantiated and is only meant to be used for the associated Self::Allocator type.

Traits

Allocator

Generic allocator for IDs of type ID.

Create

Trait implemented by allocators that can create new IDs, atomically and without additional arguments.

CreateChecked

Trait implemented by allocators that can create new IDs, atomically and without additional arguments.

Delete

Trait implemented by allocators that can delete IDs, atomically and without additional arguments.

MergeDeleted

Interface for deleting IDs flagged by Delete::delete with only a mutable reference to the Merger.