procyon-rs / vega_lite_4.rs

rust api for vega-lite v4
Apache License 2.0
26 stars 7 forks source link

Avoid some call to "xxx".to_string() inside enum like XXXX::String(...) #1

Open davidB opened 4 years ago

davidB commented 4 years ago

There are few Enum with a variant String(String). So when user need it it should call like XXX::String("yyy".to_string()). Supporting &str directly will be a bonus, as: