ParamData

Enum ParamData 

Source
#[non_exhaustive]
pub enum ParamData {
Show 20 variants F32(f32), F64(f64), I32(i32), U32(u32), I64(i64), U64(u64), Bool(bool), Volume(Volume), Vector2D(Vec2), Vector3D(Vec3), EventInstant(EventInstant), InstantSeconds(InstantSeconds), DurationSeconds(DurationSeconds), InstantSamples(InstantSamples), DurationSamples(DurationSamples), InstantMusical(InstantMusical), DurationMusical(DurationMusical), Any(ArcGc<dyn Any + Send + Sync>), CustomBytes([u8; 20]), None,
}
Expand description

Data that can be used to patch an individual parameter.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

F32(f32)

§

F64(f64)

§

I32(i32)

§

U32(u32)

§

I64(i64)

§

U64(u64)

§

Bool(bool)

§

Volume(Volume)

§

Vector2D(Vec2)

§

Vector3D(Vec3)

§

EventInstant(EventInstant)

§

InstantSeconds(InstantSeconds)

§

DurationSeconds(DurationSeconds)

§

InstantSamples(InstantSamples)

§

DurationSamples(DurationSamples)

§

InstantMusical(InstantMusical)

§

DurationMusical(DurationMusical)

§

Any(ArcGc<dyn Any + Send + Sync>)

Custom type stored on the heap.

§

CustomBytes([u8; 20])

Custom type stored on the stack as raw bytes.

§

None

No data (i.e. the type is None).

Implementations§

Source§

impl ParamData

Source

pub fn any<T: Send + Sync + 'static>(value: T) -> Self

Construct a ParamData::Any variant.

Source

pub fn opt_any<T: Any + Send + Sync + 'static>(value: Option<T>) -> Self

Construct an optional ParamData::Any variant.

Source

pub fn downcast_ref<T: Any>(&self) -> Option<&T>

Try to downcast ParamData::Any into T.

If this enum doesn’t hold ParamData::Any or the downcast fails, then this returns None.

Trait Implementations§

Source§

impl Clone for ParamData

Source§

fn clone(&self) -> ParamData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParamData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<()> for ParamData

Source§

fn from(_value: ()) -> Self

Converts to this type from the input type.
Source§

impl From<DurationMusical> for ParamData

Source§

fn from(value: DurationMusical) -> Self

Converts to this type from the input type.
Source§

impl From<DurationSamples> for ParamData

Source§

fn from(value: DurationSamples) -> Self

Converts to this type from the input type.
Source§

impl From<DurationSeconds> for ParamData

Source§

fn from(value: DurationSeconds) -> Self

Converts to this type from the input type.
Source§

impl From<EventInstant> for ParamData

Source§

fn from(value: EventInstant) -> Self

Converts to this type from the input type.
Source§

impl From<InstantMusical> for ParamData

Source§

fn from(value: InstantMusical) -> Self

Converts to this type from the input type.
Source§

impl From<InstantSamples> for ParamData

Source§

fn from(value: InstantSamples) -> Self

Converts to this type from the input type.
Source§

impl From<InstantSeconds> for ParamData

Source§

fn from(value: InstantSeconds) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<()>> for ParamData

Source§

fn from(_value: Notify<()>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<DurationMusical>> for ParamData

Source§

fn from(value: Notify<DurationMusical>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<DurationSamples>> for ParamData

Source§

fn from(value: Notify<DurationSamples>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<DurationSeconds>> for ParamData

Source§

fn from(value: Notify<DurationSeconds>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<EventInstant>> for ParamData

Source§

fn from(value: Notify<EventInstant>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<InstantMusical>> for ParamData

Source§

fn from(value: Notify<InstantMusical>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<InstantSamples>> for ParamData

Source§

fn from(value: Notify<InstantSamples>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<InstantSeconds>> for ParamData

Source§

fn from(value: Notify<InstantSeconds>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Vec2>> for ParamData

Source§

fn from(value: Notify<Vec2>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Vec2>> for ParamData

Source§

fn from(value: Notify<Vec2>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Vec2>> for ParamData

Source§

fn from(value: Notify<Vec2>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Vec3>> for ParamData

Source§

fn from(value: Notify<Vec3>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Vec3>> for ParamData

Source§

fn from(value: Notify<Vec3>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Vec3>> for ParamData

Source§

fn from(value: Notify<Vec3>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<Volume>> for ParamData

Source§

fn from(value: Notify<Volume>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<bool>> for ParamData

Source§

fn from(value: Notify<bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<f32>> for ParamData

Source§

fn from(value: Notify<f32>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<f64>> for ParamData

Source§

fn from(value: Notify<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<i32>> for ParamData

Source§

fn from(value: Notify<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<i64>> for ParamData

Source§

fn from(value: Notify<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<u32>> for ParamData

Source§

fn from(value: Notify<u32>) -> Self

Converts to this type from the input type.
Source§

impl From<Notify<u64>> for ParamData

Source§

fn from(value: Notify<u64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<DurationMusical>> for ParamData

Source§

fn from(value: Option<DurationMusical>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<DurationSamples>> for ParamData

Source§

fn from(value: Option<DurationSamples>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<DurationSeconds>> for ParamData

Source§

fn from(value: Option<DurationSeconds>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<EventInstant>> for ParamData

Source§

fn from(value: Option<EventInstant>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<InstantMusical>> for ParamData

Source§

fn from(value: Option<InstantMusical>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<InstantSamples>> for ParamData

Source§

fn from(value: Option<InstantSamples>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<InstantSeconds>> for ParamData

Source§

fn from(value: Option<InstantSeconds>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Vec2>> for ParamData

Source§

fn from(value: Option<Vec2>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Vec2>> for ParamData

Source§

fn from(value: Option<Vec2>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Vec2>> for ParamData

Source§

fn from(value: Option<Vec2>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Vec3>> for ParamData

Source§

fn from(value: Option<Vec3>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Vec3>> for ParamData

Source§

fn from(value: Option<Vec3>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Vec3>> for ParamData

Source§

fn from(value: Option<Vec3>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Volume>> for ParamData

Source§

fn from(value: Option<Volume>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<bool>> for ParamData

Source§

fn from(value: Option<bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<f32>> for ParamData

Source§

fn from(value: Option<f32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<f64>> for ParamData

Source§

fn from(value: Option<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<i32>> for ParamData

Source§

fn from(value: Option<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<i64>> for ParamData

Source§

fn from(value: Option<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<u32>> for ParamData

Source§

fn from(value: Option<u32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<u64>> for ParamData

Source§

fn from(value: Option<u64>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2> for ParamData

Source§

fn from(value: Vec2) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2> for ParamData

Source§

fn from(value: Vec2) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2> for ParamData

Source§

fn from(value: Vec2) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3> for ParamData

Source§

fn from(value: Vec3) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3> for ParamData

Source§

fn from(value: Vec3) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3> for ParamData

Source§

fn from(value: Vec3) -> Self

Converts to this type from the input type.
Source§

impl From<Volume> for ParamData

Source§

fn from(value: Volume) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for ParamData

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for ParamData

Source§

fn from(value: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for ParamData

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for ParamData

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for ParamData

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for ParamData

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for ParamData

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl TryInto<()> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<(), PatchError>

Performs the conversion.
Source§

impl TryInto<DurationMusical> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<DurationMusical, PatchError>

Performs the conversion.
Source§

impl TryInto<DurationSamples> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<DurationSamples, PatchError>

Performs the conversion.
Source§

impl TryInto<DurationSeconds> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<DurationSeconds, PatchError>

Performs the conversion.
Source§

impl TryInto<EventInstant> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<EventInstant, PatchError>

Performs the conversion.
Source§

impl TryInto<InstantMusical> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<InstantMusical, PatchError>

Performs the conversion.
Source§

impl TryInto<InstantSamples> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<InstantSamples, PatchError>

Performs the conversion.
Source§

impl TryInto<InstantSeconds> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<InstantSeconds, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<()>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<()>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<DurationMusical>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<DurationMusical>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<DurationSamples>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<DurationSamples>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<DurationSeconds>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<DurationSeconds>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<EventInstant>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<EventInstant>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<InstantMusical>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<InstantMusical>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<InstantSamples>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<InstantSamples>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<InstantSeconds>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<InstantSeconds>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Vec2>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Vec2>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Vec2>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Vec2>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Vec2>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Vec2>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Vec3>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Vec3>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Vec3>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Vec3>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Vec3>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Vec3>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<Volume>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<Volume>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<bool>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<bool>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<f32>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<f32>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<f64>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<f64>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<i32>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<i32>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<i64>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<i64>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<u32>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<u32>, PatchError>

Performs the conversion.
Source§

impl TryInto<Notify<u64>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Notify<u64>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<DurationMusical>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<DurationMusical>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<DurationSamples>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<DurationSamples>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<DurationSeconds>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<DurationSeconds>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<EventInstant>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<EventInstant>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<InstantMusical>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<InstantMusical>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<InstantSamples>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<InstantSamples>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<InstantSeconds>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<InstantSeconds>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Vec2>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Vec2>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Vec2>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Vec2>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Vec2>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Vec2>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Vec3>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Vec3>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Vec3>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Vec3>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Vec3>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Vec3>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<Volume>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Volume>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<bool>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<bool>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<f32>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<f32>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<f64>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<f64>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<i32>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<i32>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<i64>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<i64>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<u32>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<u32>, PatchError>

Performs the conversion.
Source§

impl TryInto<Option<u64>> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<u64>, PatchError>

Performs the conversion.
Source§

impl TryInto<Vec2> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Vec2, PatchError>

Performs the conversion.
Source§

impl TryInto<Vec2> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Vec2, PatchError>

Performs the conversion.
Source§

impl TryInto<Vec2> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Vec2, PatchError>

Performs the conversion.
Source§

impl TryInto<Vec3> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Vec3, PatchError>

Performs the conversion.
Source§

impl TryInto<Vec3> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Vec3, PatchError>

Performs the conversion.
Source§

impl TryInto<Vec3> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Vec3, PatchError>

Performs the conversion.
Source§

impl TryInto<Volume> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Volume, PatchError>

Performs the conversion.
Source§

impl TryInto<bool> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<bool, PatchError>

Performs the conversion.
Source§

impl TryInto<f32> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<f32, PatchError>

Performs the conversion.
Source§

impl TryInto<f64> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<f64, PatchError>

Performs the conversion.
Source§

impl TryInto<i32> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<i32, PatchError>

Performs the conversion.
Source§

impl TryInto<i64> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<i64, PatchError>

Performs the conversion.
Source§

impl TryInto<u32> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<u32, PatchError>

Performs the conversion.
Source§

impl TryInto<u64> for &ParamData

Source§

type Error = PatchError

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<u64, PatchError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoResult<T> for T

Source§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<A> Is for A
where A: Any,

Source§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

Source§

fn clone_type_data(&self) -> Box<dyn TypeData>

Creates a type-erased clone of this value.
Source§

impl<T> ConditionalSend for T
where T: Send,