pub struct MaskLiteral {
pub shape: MaskShape,
pub radius: Option<f64>,
pub feather: f64,
pub invert: bool,
}Expand description
A mask token literal: a single spatial coverage shape plus a feather and an invert flag.
Fields§
§shape: MaskShapeThe coverage shape.
radius: Option<f64>RoundedRect corner radius (px); ignored for other shapes.
feather: f64Gaussian feather sigma (px, >= 0); 0 = hard edge.
invert: boolInvert coverage.
Trait Implementations§
Source§impl Clone for MaskLiteral
impl Clone for MaskLiteral
Source§fn clone(&self) -> MaskLiteral
fn clone(&self) -> MaskLiteral
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 MaskLiteral
impl Debug for MaskLiteral
Source§impl PartialEq for MaskLiteral
impl PartialEq for MaskLiteral
Source§fn eq(&self, other: &MaskLiteral) -> bool
fn eq(&self, other: &MaskLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MaskLiteral
Auto Trait Implementations§
impl Freeze for MaskLiteral
impl RefUnwindSafe for MaskLiteral
impl Send for MaskLiteral
impl Sync for MaskLiteral
impl Unpin for MaskLiteral
impl UnsafeUnpin for MaskLiteral
impl UnwindSafe for MaskLiteral
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