pub trait OutlinedBorder: ShapeBorder {
// Required methods
fn side(&self) -> BorderSide;
fn copy_with(&self, side: Option<BorderSide>) -> OutlinedBorderRef;
}Expand description
A ShapeBorder that draws an outline with the width and color specified
by side.
Required Methods§
Sourcefn side(&self) -> BorderSide
fn side(&self) -> BorderSide
The border outline’s color and weight.
Sourcefn copy_with(&self, side: Option<BorderSide>) -> OutlinedBorderRef
fn copy_with(&self, side: Option<BorderSide>) -> OutlinedBorderRef
Returns a copy of this OutlinedBorder that draws its outline with the
specified side, if side is Some.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".