pub enum EmitterShape {
Point,
Line {
x1: f32,
y1: f32,
x2: f32,
y2: f32,
},
Circle {
cx: f32,
cy: f32,
radius: f32,
},
Rect {
x: f32,
y: f32,
w: f32,
h: f32,
},
}Expand description
Shape of the emission area.
Variants§
Point
Single point.
Line
Line segment from (x1, y1) to (x2, y2).
Circle
Circle with center and radius.
Rect
Rectangle.
Trait Implementations§
Source§impl Clone for EmitterShape
impl Clone for EmitterShape
Source§fn clone(&self) -> EmitterShape
fn clone(&self) -> EmitterShape
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 moreimpl Copy for EmitterShape
Auto Trait Implementations§
impl Freeze for EmitterShape
impl RefUnwindSafe for EmitterShape
impl Send for EmitterShape
impl Sync for EmitterShape
impl Unpin for EmitterShape
impl UnsafeUnpin for EmitterShape
impl UnwindSafe for EmitterShape
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