Skip to main content

OutlinedBorder

Trait OutlinedBorder 

Source
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§

Source

fn side(&self) -> BorderSide

The border outline’s color and weight.

Source

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§

Source§

impl PartialEq for dyn OutlinedBorder

Dart’s == on an OutlinedBorder, which is ShapeBorder’s.

Source§

fn eq(&self, other: &(dyn OutlinedBorder + 'static)) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§