pub fn horizontal_rule<'a, Theme>(height: impl Into<Pixels>) -> Rule<'a, Theme>where Theme: Catalog + 'a,
Creates a horizontal Rule with the given height.
Rule
use iced::widget::horizontal_rule; #[derive(Clone)] enum Message { // ..., } fn view(state: &State) -> Element<'_, Message> { horizontal_rule(2).into() }