anybox

Crates.ioanybox
lib.rsanybox
version0.1.1
sourcesrc
created_at2021-12-15 17:28:04.833759
updated_at2021-12-18 18:43:54.128343
descriptionLibrary providing a plain and simple datatype that can hold data of arbitrary type.
homepage
repositoryhttps://github.com/nilsmartel/anybox
max_upload_size
id498392
size4,731
Nils Martel (nilsmartel)

documentation

README

AnyBox

(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.

Usage

let data = AnyBox::new(7usize);

let retrieved: &usize = data.get();

Is this safe to use?

This is very experimental, it is not safe to use.

Commit count: 8

cargo fmt