carloskiki / icondata

SVG Icon data from multiple free icon libraries ported to rust.
MIT License
52 stars 12 forks source link

Derive Default for IconData #43

Closed phill-85 closed 1 week ago

phill-85 commented 3 months ago

Derive Default for IconData

carloskiki commented 3 months ago

Can you explain why you need this feature?

phill-85 commented 3 months ago

Its a requirement of an external library i'm trying to use.

carloskiki commented 3 months ago

Can you expand?

It really does not make sense to have a "default" icon where every field is just None or empty string.

You could also have a wrapper type instead that does implement Default that would match your specific use case.

carloskiki commented 1 week ago

I'll close this as its unwanted