#data #datatype #plain #hold

anybox

Library providing a plain and simple datatype that can hold data of arbitrary type

2 releases

0.1.1 Dec 18, 2021
0.1.0 Dec 15, 2021

#21 in #plain

36 downloads per month

MIT/Apache

5KB
77 lines

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.

No runtime deps