pub trait Sample:
Copy
+ Zero
+ 'static { }Expand description
Represents a sample type that can be stored and processed in audio blocks.
This trait is automatically implemented for any type that meets the following requirements:
Copy: The type can be copied by value efficientlyZero: The type has a zero value'static: The type doesn’t contain any non-static references
All numeric types (f32, f64, i16, i32, etc.) automatically implement this trait, as well as any custom types that satisfy these bounds.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.