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