From 00a0a58ca67c74068cf736d44b86eb960018cef9 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 31 Dec 2020 23:08:39 +0000 Subject: [PATCH] Any allocator support comment https://github.com/rust-lang/rust/pull/79500 --- src/string.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/string.rs b/src/string.rs index b1afb2a..cc8e22e 100644 --- a/src/string.rs +++ b/src/string.rs @@ -100,6 +100,7 @@ pub trait RetainMoreString: sealed::AllocMoreSealedString { } } +// Future work - support this for strings with all allocators once/if lands impl RetainMoreString for String { fn retain_all bool>(&mut self, mut f: F) { let len = self.len();