cosmic::iced_widget::renderer::graphics::core::border

Function width

source
pub fn width(width: impl Into<Pixels>) -> Border
Expand description

Creates a new Border with the given width.

assert_eq!(border::width(10), Border::default().width(10));