mime
mime copied to clipboard
feature: Consuming constructor
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?