iced::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));