pub enum BoxShape {
Rectangle,
Circle,
}Expand description
The shape to use when rendering a Border or BoxDecoration.
Consider using ShapeBorder subclasses directly (with ShapeDecoration),
instead of using BoxShape and Border, if the shapes will need to be
interpolated or animated. The Border class cannot interpolate between
different shapes.
Variants§
Rectangle
An axis-aligned rectangle, optionally with rounded corners.
Circle
A circle centered in the middle of the box.
Trait Implementations§
impl Copy for BoxShape
impl Eq for BoxShape
impl StructuralPartialEq for BoxShape
Auto Trait Implementations§
impl Forget for BoxShape
impl Freeze for BoxShape
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.