Crate extendable

Source
Expand description

A type that can be used to dynamically store data by type.

§Examples

use extendable::Extensions;

let mut extensions = Extensions::default();
extensions.insert(false);

let bool_ext = extensions.get::<bool>();
assert_eq!(bool_ext, Some(&false));

Structs§

Extensions
A type that can be used to dynamically store data by type.