From 638665af06e5d835bdc9b3163445dcec23db5ff9 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 14 Mar 2022 21:40:44 +0100 Subject: [PATCH] Add safety hint Signed-off-by: trivernis --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b26d8b..001f9fb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,17 @@ -# Trait bound Typemap +# Trait bound Typemap [![](https://img.shields.io/crates/v/trait-bound-typemap)](https://crates.io/crates/trait-bound-typemap) [![](https://img.shields.io/docsrs/trait-bound-typemap)](https://docs.rs/trait-bound-typemap) This crate offers typemaps that restrict a given type in their trait and therefore offer additional trait implementations such as `Clone` and `PartialEq`. + +## Safety + +This crate relies on the [multi-trait-object](https://crates.io/crates/multi-trait-object) crate +which provides a workaround for storing a type erased object with all associated traits until +this feature is implemented in the language itself. This crate will likely break when the +fat pointer used by trait objects changes which it hasn't in a long time so far. + + ## Usage ```rust