From e5ea9c39280aa7b36f3a05b1f2be8f8b45ae4790 Mon Sep 17 00:00:00 2001 From: noteuclid Date: Thu, 24 Sep 2026 18:42:15 +0300 Subject: [PATCH] add note on no by-value methods --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 38fc02a..fee24e1 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,6 @@ A relatively simple example wrapper working (kinda) as a *by-value* `dyn Trait`. Limitations: * The wrapper size is fixed. The content either fits, or it doesn’t compile. * Supporting each trait requires a bit of code, as there is no way to express “for each *trait* X” in Rust. +* Like with `Box`, you can’t call by-value methods on the content. * Requires unstable features (notably `ptr_metadata`, others are probably avoidable). * `unsafe` here, `unsafe` there, `unsafe` everywhere! (It does pass Miri though).