pub enum MaskShape {
Rect,
RoundedRect,
Ellipse,
}Expand description
The spatial coverage shape of a mask token.
Variants§
Implementations§
Source§impl MaskShape
impl MaskShape
Sourcepub fn from_shape_name(s: &str) -> Option<Self>
pub fn from_shape_name(s: &str) -> Option<Self>
Parse a mask shape from its KDL shape-child name, or None if
unrecognized.
Sourcepub fn as_shape_name(&self) -> &'static str
pub fn as_shape_name(&self) -> &'static str
The canonical KDL shape-child name for this mask shape (inverse of
MaskShape::from_shape_name).
Trait Implementations§
impl Copy for MaskShape
impl StructuralPartialEq for MaskShape
Auto Trait Implementations§
impl Freeze for MaskShape
impl RefUnwindSafe for MaskShape
impl Send for MaskShape
impl Sync for MaskShape
impl Unpin for MaskShape
impl UnsafeUnpin for MaskShape
impl UnwindSafe for MaskShape
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