Confused over what modules & Widgets to use

I’m just getting started with Iced and am confused over how to reference the correct widgets.

When I look to use a “Button” for example I see:

  • iced::widget::button::Button and also
  • iced::widget::Button

They seem to be exactly the same. Is there a reason for both paths to the widget and which should I use?

iced::widget::Button is just a re-export of iced::widget::button::Button: iced/widget/src/ at 0.12.1 · iced-rs/iced · GitHub.

You can use either as both are public, it makes no difference.