Crates.io | anybox |
lib.rs | anybox |
version | 0.1.1 |
source | src |
created_at | 2021-12-15 17:28:04.833759 |
updated_at | 2021-12-18 18:43:54.128343 |
description | Library providing a plain and simple datatype that can hold data of arbitrary type. |
homepage | |
repository | https://github.com/nilsmartel/anybox |
max_upload_size | |
id | 498392 |
size | 4,731 |
(rust) Library providing a plain and simple datatype that can hold data of arbitrary type. In order to receive data providing the type again is required.
Designed to do one thing and do that well.
let data = AnyBox::new(7usize);
let retrieved: &usize = data.get();
This is very experimental, it is not safe to use.