#[repr(u32)]pub enum FloatMappingType {
Linear = 0,
Auto = 1,
PiecewiceLinear = 2,
}
Expand description
DSP float parameter mappings.
These determine how values are mapped across dials and automation curves.
Variants§
Linear = 0
Values mapped linearly across range.
Auto = 1
A mapping is automatically chosen based on range and units.
PiecewiceLinear = 2
Values mapped in a piecewise linear fashion defined by FMOD_DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR
.
Trait Implementations§
Source§impl Clone for FloatMappingType
impl Clone for FloatMappingType
Source§fn clone(&self) -> FloatMappingType
fn clone(&self) -> FloatMappingType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FloatMappingType
impl Debug for FloatMappingType
Source§impl Default for FloatMappingType
impl Default for FloatMappingType
Source§fn default() -> FloatMappingType
fn default() -> FloatMappingType
Returns the “default value” for a type. Read more
Source§impl From<FloatMappingType> for u32
impl From<FloatMappingType> for u32
Source§fn from(enum_value: FloatMappingType) -> Self
fn from(enum_value: FloatMappingType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FloatMappingType
impl PartialEq for FloatMappingType
Source§impl TryFrom<u32> for FloatMappingType
impl TryFrom<u32> for FloatMappingType
Source§type Error = TryFromPrimitiveError<FloatMappingType>
type Error = TryFromPrimitiveError<FloatMappingType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FloatMappingType
impl TryFromPrimitive for FloatMappingType
const NAME: &'static str = "FloatMappingType"
type Primitive = u32
type Error = TryFromPrimitiveError<FloatMappingType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for FloatMappingType
impl UnsafeFromPrimitive for FloatMappingType
type Primitive = u32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for FloatMappingType
impl Eq for FloatMappingType
impl StructuralPartialEq for FloatMappingType
Auto Trait Implementations§
impl Freeze for FloatMappingType
impl RefUnwindSafe for FloatMappingType
impl Send for FloatMappingType
impl Sync for FloatMappingType
impl Unpin for FloatMappingType
impl UnwindSafe for FloatMappingType
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