iced::border

Function color

Source
pub fn color(color: impl Into<Color>) -> Border
Expand description

Creates a new Border with the given Color.

assert_eq!(border::color(Color::BLACK), Border::default().color(Color::BLACK));