Struct comfy_wgpu::kira::tween::ModulatorMapping
pub struct ModulatorMapping<T> {
pub input_range: (f64, f64),
pub output_range: (T, T),
pub clamp_bottom: bool,
pub clamp_top: bool,
}Expand description
A transformation from a modulator’s value to a parameter value.
Fields§
§input_range: (f64, f64)A range of values from a modulator.
output_range: (T, T)The corresponding range of values of the parameter.
clamp_bottom: boolWhether values should be prevented from being less than the bottom of the output range.
clamp_top: boolWhether values should be prevented from being greater than the top of the output range.
Implementations§
§impl<T> ModulatorMapping<T>
impl<T> ModulatorMapping<T>
Trait Implementations§
§impl<T> Clone for ModulatorMapping<T>where
T: Clone,
impl<T> Clone for ModulatorMapping<T>where T: Clone,
§fn clone(&self) -> ModulatorMapping<T>
fn clone(&self) -> ModulatorMapping<T>
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 more§impl<T> Debug for ModulatorMapping<T>where
T: Debug,
impl<T> Debug for ModulatorMapping<T>where T: Debug,
§impl Default for ModulatorMapping<PlaybackRate>
impl Default for ModulatorMapping<PlaybackRate>
§fn default() -> ModulatorMapping<PlaybackRate>
fn default() -> ModulatorMapping<PlaybackRate>
Returns the “default value” for a type. Read more
§impl Default for ModulatorMapping<Volume>
impl Default for ModulatorMapping<Volume>
§fn default() -> ModulatorMapping<Volume>
fn default() -> ModulatorMapping<Volume>
Returns the “default value” for a type. Read more
§impl Default for ModulatorMapping<f32>
impl Default for ModulatorMapping<f32>
§fn default() -> ModulatorMapping<f32>
fn default() -> ModulatorMapping<f32>
Returns the “default value” for a type. Read more
§impl Default for ModulatorMapping<f64>
impl Default for ModulatorMapping<f64>
§fn default() -> ModulatorMapping<f64>
fn default() -> ModulatorMapping<f64>
Returns the “default value” for a type. Read more
§impl<T> PartialEq<ModulatorMapping<T>> for ModulatorMapping<T>where
T: PartialEq<T>,
impl<T> PartialEq<ModulatorMapping<T>> for ModulatorMapping<T>where T: PartialEq<T>,
§fn eq(&self, other: &ModulatorMapping<T>) -> bool
fn eq(&self, other: &ModulatorMapping<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Copy for ModulatorMapping<T>where T: Copy,
impl<T> StructuralPartialEq for ModulatorMapping<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ModulatorMapping<T>where T: RefUnwindSafe,
impl<T> Send for ModulatorMapping<T>where T: Send,
impl<T> Sync for ModulatorMapping<T>where T: Sync,
impl<T> Unpin for ModulatorMapping<T>where T: Unpin,
impl<T> UnwindSafe for ModulatorMapping<T>where T: UnwindSafe,
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