pub struct CornerRadii {
pub top_left: f32,
pub top_right: f32,
pub bottom_left: f32,
pub bottom_right: f32,
}Expand description
Defines individual corner radii for an element.
Fields§
§top_left: f32The radius for the top-left corner.
top_right: f32The radius for the top-right corner.
bottom_left: f32The radius for the bottom-left corner.
bottom_right: f32The radius for the bottom-right corner.
Implementations§
Source§impl CornerRadii
impl CornerRadii
pub fn clamp_to_size(&mut self, width: f32, height: f32)
Trait Implementations§
Source§impl Clone for CornerRadii
impl Clone for CornerRadii
Source§fn clone(&self) -> CornerRadii
fn clone(&self) -> CornerRadii
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CornerRadii
impl Debug for CornerRadii
Source§impl From<CornerRadius> for CornerRadii
impl From<CornerRadius> for CornerRadii
Source§fn from(value: CornerRadius) -> Self
fn from(value: CornerRadius) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CornerRadii
impl RefUnwindSafe for CornerRadii
impl Send for CornerRadii
impl Sync for CornerRadii
impl Unpin for CornerRadii
impl UnsafeUnpin for CornerRadii
impl UnwindSafe for CornerRadii
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