pub struct Builder { /* private fields */ }
Expand description
§Front-end to create PointParticleEmitter2 objects step by step.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_origin(&mut self, origin: &Vector2D) -> &mut Self
pub fn with_origin(&mut self, origin: &Vector2D) -> &mut Self
Returns builder with origin.
Sourcepub fn with_direction(&mut self, direction: &Vector2D) -> &mut Self
pub fn with_direction(&mut self, direction: &Vector2D) -> &mut Self
Returns builder with direction.
Sourcepub fn with_speed(&mut self, speed: f64) -> &mut Self
pub fn with_speed(&mut self, speed: f64) -> &mut Self
Returns builder with speed.
Sourcepub fn with_spread_angle_in_degrees(
&mut self,
spread_angle_in_degrees: f64,
) -> &mut Self
pub fn with_spread_angle_in_degrees( &mut self, spread_angle_in_degrees: f64, ) -> &mut Self
Returns builder with spread angle in degrees.
pub fn with_max_number_of_new_particles_per_second( &mut self, max_num_of_new_particles_per_sec: usize, ) -> &mut Self
Sourcepub fn with_max_number_of_particles(
&mut self,
max_number_of_particles: usize,
) -> &mut Self
pub fn with_max_number_of_particles( &mut self, max_number_of_particles: usize, ) -> &mut Self
Returns builder with max number of particles.
Sourcepub fn with_random_seed(&mut self, seed: u64) -> &mut Self
pub fn with_random_seed(&mut self, seed: u64) -> &mut Self
Returns builder with random seed.
Sourcepub fn build(&mut self) -> PointParticleEmitter2
pub fn build(&mut self) -> PointParticleEmitter2
Builds PointParticleEmitter2.
Builds shared pointer of PointParticleEmitter2 instance.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more