pub enum ClipShape {
Circle {
cx: i32,
cy: i32,
r_sq: i64,
},
Ellipse {
cx: i32,
cy: i32,
rx: i32,
ry: i32,
},
Inset {
x0: i32,
y0: i32,
x1: i32,
y1: i32,
radius: (i32, i32, i32, i32),
},
Polygon {
points: Vec<(i32, i32)>,
nonzero: bool,
},
}Expand description
Parsed clip-path shape in element-relative pixel coordinates.
Variants§
Auto Trait Implementations§
impl Freeze for ClipShape
impl RefUnwindSafe for ClipShape
impl Send for ClipShape
impl Sync for ClipShape
impl Unpin for ClipShape
impl UnsafeUnpin for ClipShape
impl UnwindSafe for ClipShape
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