pub trait BorderView: View {
// Required method
fn border_node(&mut self) -> &mut BorderStyle;
// Provided methods
fn border(self, border: UiRect) -> Self { ... }
fn border_color(self, border_color: impl Into<Color>) -> Self { ... }
fn border_radius(self, border_radius: BorderRadius) -> Self { ... }
}Expand description
Provides border configuration for a UI container
Required Methods§
Sourcefn border_node(&mut self) -> &mut BorderStyle
fn border_node(&mut self) -> &mut BorderStyle
Returns a mutable reference to the current border style
Provided Methods§
Sourcefn border_color(self, border_color: impl Into<Color>) -> Self
fn border_color(self, border_color: impl Into<Color>) -> Self
Sets the border color
Sourcefn border_radius(self, border_radius: BorderRadius) -> Self
fn border_radius(self, border_radius: BorderRadius) -> Self
Sets the border radius
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.