Struct css_style::border::Border [−][src]
pub struct Border {
pub left: Side,
pub top: Side,
pub right: Side,
pub bottom: Side,
pub top_left: Option<Radius>,
pub top_right: Option<Radius>,
pub bottom_left: Option<Radius>,
pub bottom_right: Option<Radius>,
}
Expand description
use css_style::{Style, unit::px, color, border::BorderStyle};
Style::default()
.and_border(|conf| {
conf.solid() // or .style(BorderStyle::Solid)
.width(px(2))
.color(color::named::DIMGRAY)
.radius(px(4))
});
Fields
left: Side
top: Side
right: Side
bottom: Side
top_left: Option<Radius>
top_right: Option<Radius>
bottom_left: Option<Radius>
bottom_right: Option<Radius>
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Border
impl UnwindSafe for Border
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more