iced::widget

Function vertical_rule

Source
pub fn vertical_rule<'a, Theme>(width: impl Into<Pixels>) -> Rule<'a, Theme>
where Theme: Catalog + 'a,
Expand description

Creates a vertical Rule with the given width.

ยงExample

use iced::widget::vertical_rule;

#[derive(Clone)]
enum Message {
    // ...,
}

fn view(state: &State) -> Element<'_, Message> {
    vertical_rule(2).into()
}