Crates.io | borrow-bag |
lib.rs | borrow-bag |
version | 1.1.1 |
source | src |
created_at | 2017-05-16 02:03:18.291204 |
updated_at | 2023-09-12 19:40:28.823322 |
description | A type-safe, heterogeneous collection with zero-cost add and borrow |
homepage | https://gotham.rs |
repository | https://github.com/gotham-rs/gotham |
max_upload_size | |
id | 14756 |
size | 10,564 |
A type-safe, heterogeneous collection with zero-cost add and borrow.
BorrowBag
allows the storage of any value, and returns a Handle
which can be
used to borrow the value back later. As the BorrowBag
is add-only, Handle
values remain valid for the lifetime of the BorrowBag
.
For usage details, please see the documentation
BorrowBag
solves the problem of assembling Gotham's Middleware
and Pipeline
structures,
storing concrete types without losing their type information, and with an ability to borrow them
back later after moving the collection.
The Gotham project extracted the implementation into this crate for use in other contexts and continues to maintain it.
Licensed under your option of:
The following policies guide participation in our project and our community: