pub enum CornerShape {
Radii([f32; 4]),
Full,
}Expand description
Logical rounded corners in top-start, top-end, bottom-end, bottom-start order.
Variants§
Radii([f32; 4])
Explicit logical corner radii [top_start, top_end, bottom_end, bottom_start] in dp.
Full
Pill / stadium rounding using half of the shorter side.
Implementations§
Trait Implementations§
Source§impl Clone for CornerShape
impl Clone for CornerShape
impl Copy for CornerShape
Source§impl Debug for CornerShape
impl Debug for CornerShape
Source§impl PartialEq for CornerShape
impl PartialEq for CornerShape
impl StructuralPartialEq for CornerShape
Auto Trait Implementations§
impl Forget for CornerShape
impl Freeze for CornerShape
impl Move for CornerShape
impl RefUnwindSafe for CornerShape
impl Send for CornerShape
impl Sync for CornerShape
impl Unpin for CornerShape
impl UnsafeUnpin for CornerShape
impl UnwindSafe for CornerShape
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