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
For obvious reasons, this doesn't directly work. To make it work the error string has to be stored out of line elsewhere, but this isn't always convenient (at least, it isn't for my design). It would be easier if there was a variant of (at least some) of the APIs which accepts a String instead, and the fields internally store a Cow<'src, 'str> instead of a &'src str.
Incidentally, this also might help people who have use cases that would have wanted #101, since it would be easier to directly format into a String that is stored by the Message.
The text was updated successfully, but these errors were encountered:
I've been using this crate for personal project of mine, and I've sometimes found myself wanting to do something like this this:
For obvious reasons, this doesn't directly work. To make it work the error string has to be stored out of line elsewhere, but this isn't always convenient (at least, it isn't for my design). It would be easier if there was a variant of (at least some) of the APIs which accepts a
String
instead, and the fields internally store aCow<'src, 'str>
instead of a&'src str
.Incidentally, this also might help people who have use cases that would have wanted #101, since it would be easier to directly format into a
String
that is stored by theMessage
.The text was updated successfully, but these errors were encountered: