Struct gilrs::ff::effect_source::EffectSource
source · pub(crate) struct EffectSource {
base_effects: Vec<BaseEffect>,
pub(super) devices: VecMap<()>,
pub(super) repeat: Repeat,
pub(super) distance_model: DistanceModel,
pub(super) position: [f32; 3],
pub(super) gain: f32,
pub(super) state: EffectState,
pub(super) completion_events: Vec<Event>,
}
Fields§
§base_effects: Vec<BaseEffect>
§devices: VecMap<()>
§repeat: Repeat
§distance_model: DistanceModel
§position: [f32; 3]
§gain: f32
§state: EffectState
§completion_events: Vec<Event>
Implementations§
source§impl EffectSource
impl EffectSource
pub(super) fn new( base_effects: Vec<BaseEffect>, devices: VecMap<()>, repeat: Repeat, dist_model: DistanceModel, position: [f32; 3], gain: f32, ) -> Self
pub(super) fn combine_base_effects( &mut self, ticks: Ticks, actor_pos: [f32; 3], ) -> Magnitude
pub(super) fn flush_completion_events(&mut self) -> Vec<Event>
Trait Implementations§
source§impl Clone for EffectSource
impl Clone for EffectSource
source§fn clone(&self) -> EffectSource
fn clone(&self) -> EffectSource
Returns a copy of the value. Read more
1.0.0 · 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 EffectSource
impl Debug for EffectSource
source§impl From<EffectSource> for Effect
impl From<EffectSource> for Effect
source§fn from(source: EffectSource) -> Self
fn from(source: EffectSource) -> Self
Converts to this type from the input type.
source§impl PartialEq for EffectSource
impl PartialEq for EffectSource
source§fn eq(&self, other: &EffectSource) -> bool
fn eq(&self, other: &EffectSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EffectSource
Auto Trait Implementations§
impl Freeze for EffectSource
impl RefUnwindSafe for EffectSource
impl Send for EffectSource
impl Sync for EffectSource
impl Unpin for EffectSource
impl UnwindSafe for EffectSource
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