One way to go about this is to have Widget:ui take label: Option<&str>. When passed None, the impl should skip rendering the label and just rendering the actual control. This way, macro code for vectors and option can manually handle the label part (for option, the label should actually be a checkbox, for vector it would be in index).
One way to go about this is to have
Widget:ui
takelabel: Option<&str>
. When passedNone
, the impl should skip rendering the label and just rendering the actual control. This way, macro code for vectors and option can manually handle the label part (for option, the label should actually be a checkbox, for vector it would be in index).