[FEATURE REQUEST] Improve usability of .css_classes
in builders
#1224
Labels
enhancement
New feature or request
.css_classes
in builders
#1224
Currently in builders (such as
LabelBuilder
),css_classes
requires aVec<String>
, which is quite annoying to use, with snippets such as these littered throughout my codebase (this isn't an actual example, but it shows the point):The fact that I have to run
.to_string()
really makes it messier. It would be nicer if I could just pass in&str
references so I could do this:It probably wouldn't be best to just break things though - maybe a
Vec<impl ToString>
orVec<impl AsRef<str>>
could be passed instead? I just don't really want to have to be typing.to_string()
everywhere, and I don't really see any reason why it'd have to stay as such.The text was updated successfully, but these errors were encountered: