Skip to main content

Sample

Trait Sample 

Source
pub trait Sample:
    Float
    + Default
    + Send
    + Sync
    + 'static { }
Expand description

Audio-sample subtype of Float. Adds the Default + Send + Sync + 'static marker bounds that buffer code, scratch allocators, and the param-read extension trait need.

Bound at f32 and f64. Plugin authors usually don’t name this directly; the prelude resolves the bound for them.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Sample for f32

Source§

impl Sample for f64

Implementors§