Type Alias style::values::computed::border::BorderSpacing

source ·
pub type BorderSpacing = GenericBorderSpacing<NonNegativeLength>;
Expand description

A computed value for the border-spacing longhand property.

Aliased Type§

struct BorderSpacing(pub Size2D<NonNegative<CSSPixelLength>>);

Fields§

§0: Size2D<NonNegative<CSSPixelLength>>

Implementations§

source§

impl BorderSpacing

source

pub fn zero() -> Self

Returns 0 0.

source

pub fn horizontal(&self) -> Au

Returns the horizontal spacing.

source

pub fn vertical(&self) -> Au

Returns the vertical spacing.