pub type CornerRadius = Corner<Length<false, true>>;Expand description
Type alias for a structure holding four independent corner radii.
Aliased Type§
pub struct CornerRadius {
pub top_left: Length<false>,
pub top_right: Length<false>,
pub bottom_right: Length<false>,
pub bottom_left: Length<false>,
}Fields§
§top_left: Length<false>The top-left corner value.
top_right: Length<false>The top-right corner value.
bottom_right: Length<false>The bottom-right corner value.
bottom_left: Length<false>The bottom-left corner value.
Trait Implementations§
Source§impl IntoCornerRadius for CornerRadius
Wraps an existing corner radius into an optional value.
impl IntoCornerRadius for CornerRadius
Wraps an existing corner radius into an optional value.
Source§fn into_corner_radius(self) -> Option<CornerRadius>
fn into_corner_radius(self) -> Option<CornerRadius>
Converts a concrete corner radius into Some(CornerRadius).