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