You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, AmethystNamedFormat takes extra options in the form Vec<String>. This is suboptimal since it requires moving the whole container and cloning it if it needs to be reused. Instead it could be &[String], or even &[S] with AmethystNamedFormat<S> where S: Deref<Target=str>.
I'm happy to write up a PR for this if people think it's a good idea.
The text was updated successfully, but these errors were encountered:
@Benjamin-L correct me if I'm wrong, but I believe it's impossible without GAT's, since &[String] require lifetime specifier and you can't have generic parameters in type =
Currently,
AmethystNamedFormat
takes extra options in the formVec<String>
. This is suboptimal since it requires moving the whole container and cloning it if it needs to be reused. Instead it could be&[String]
, or even&[S]
withAmethystNamedFormat<S> where S: Deref<Target=str>
.I'm happy to write up a PR for this if people think it's a good idea.
The text was updated successfully, but these errors were encountered: