Hello and thank you for your crate 👍
I am working on a project in which I have a collection of Cow<'_, str> but I would like to encode some of them. To do this, I need to call Token::new(token) but once I have a Token there is no way for me to retrieve back the Cow to store in the collection.
Another alternative would to provide a standalone fn decode_token(Cow<'_, str>) -> Cow<'_, str> function without going through aToken at all if that's preferable.
I am willing to work on this, I just want to know how you feel about it before I start the implementation.
Hello and thank you for your crate 👍
I am working on a project in which I have a collection of
Cow<'_, str>but I would like to encode some of them. To do this, I need to callToken::new(token)but once I have aTokenthere is no way for me to retrieve back theCowto store in the collection.Another alternative would to provide a standalone
fn decode_token(Cow<'_, str>) -> Cow<'_, str>function without going through aTokenat all if that's preferable.I am willing to work on this, I just want to know how you feel about it before I start the implementation.