mime icon indicating copy to clipboard operation
mime copied to clipboard

feature: Consuming constructor

Open vorner opened this issue 7 years ago • 0 comments

If I have a string with mime type, I can have it parsed using the FromStr trait. But that one takes a &str and allocates a new copy of the string.

Would it be possible to add an allocation-less consuming constructor that would just use the passed String?

vorner avatar Nov 09 '18 09:11 vorner