Crates.io | swamp-assets |
lib.rs | swamp-assets |
version | 0.0.10 |
source | src |
created_at | 2024-11-09 10:49:24.449548 |
updated_at | 2024-11-14 15:41:20.387189 |
description | store assets in a slot map |
homepage | |
repository | https://github.com/swamp/swamp |
max_upload_size | |
id | 1441974 |
size | 7,905 |
swamp-assets
is a simple and efficient asset management system built on top of the sparse-slot
. It is
designed to store and manage assets with unique identifiers, providing functionality for insertion, removal,
and access to assets. The system supports both immutable and mutable access to assets and is suitable for
use in game engines or any other system that needs to manage assets efficiently.
sparse-slot
for efficient handling of assets by index and generation.Id
).get
and get_mut
.iter
method, providing both the Id
and the asset.is_empty
and len
.To use swamp-assets
, add it to your Cargo.toml
:
[dependencies]
swamp-assets = "0.0.10"
This project is licensed under the MIT License - see the LICENSE file for details.