pub enum BoxShape {
Rect,
Circle,
Stadium,
}Expand description
Box shape (D095 — a circle is a Container, not a CircleWidget).
Variants§
Rect
Rounded rect using radius (0 = sharp corners).
Circle
Fully circular (radius = min(w, h) / 2).
Stadium
Pill: radius = height / 2.
Trait Implementations§
impl Copy for BoxShape
impl StructuralPartialEq for BoxShape
Auto Trait Implementations§
impl Freeze for BoxShape
impl RefUnwindSafe for BoxShape
impl Send for BoxShape
impl Sync for BoxShape
impl Unpin for BoxShape
impl UnsafeUnpin for BoxShape
impl UnwindSafe for BoxShape
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