feat(data_structures): add AnyInlineString trait#10857
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #10857 will not alter performanceComparing Summary
|
|
We have no use for this at present - I made this for something I was working on which I've now abandonned. So closing. |

Add
AnyInlineStringtrait. Due to limitations in Rust const generics, this is required to define a trait which is generic overInlineStrings with varying capacities.This won't compile:
You can achieve the same thing with
AnyInlineString(and this will compile):