pub struct Corners {
pub top_left: Radius,
pub top_right: Radius,
pub bottom_right: Radius,
pub bottom_left: Radius,
}Expand description
The four corners of a box, each rounded by its own radius.
The radii of two corners on one edge never add up to more than the edge is long: layout scales all four down together until they fit.
Fields§
§top_left: RadiusThe top left corner.
top_right: RadiusThe top right corner.
bottom_right: RadiusThe bottom right corner.
bottom_left: RadiusThe bottom left corner.
Implementations§
Trait Implementations§
impl Copy for Corners
Source§impl<'de> Deserialize<'de> for Corners
impl<'de> Deserialize<'de> for Corners
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Corners
Auto Trait Implementations§
impl Freeze for Corners
impl RefUnwindSafe for Corners
impl Send for Corners
impl Sync for Corners
impl Unpin for Corners
impl UnsafeUnpin for Corners
impl UnwindSafe for Corners
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.