cosmic::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()
}