#[non_exhaustive]pub enum CornerShape {
Bevel,
Notch,
Round,
Scoop,
Square,
Squircle,
Raw(Raw),
}Expand description
A value of corner-shape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bevel
bevel.
Notch
notch.
Round
round.
Scoop
scoop.
Square
square.
Squircle
squircle.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for CornerShape
impl Clone for CornerShape
Source§fn clone(&self) -> CornerShape
fn clone(&self) -> CornerShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CornerShape
impl Debug for CornerShape
Source§impl Display for CornerShape
impl Display for CornerShape
Source§impl From<Raw> for CornerShape
impl From<Raw> for CornerShape
Source§fn from(v: Raw) -> CornerShape
fn from(v: Raw) -> CornerShape
Converts to this type from the input type.
Source§impl PartialEq for CornerShape
impl PartialEq for CornerShape
impl StructuralPartialEq for CornerShape
Auto Trait Implementations§
impl Freeze 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