AUDIO
Source snapshot · 12 October 2026

API reference / ravet_graph::TransitionSample

Trait TransitionSample 

pub trait TransitionSample:
    Sealed
    + Copy
    + Default
    + Send
    + 'static
    + Mul<Output = Self>
    + Add<Output = Self> {
    // Required method
    fn from_gain(gain: f64) -> Self;
}
Expand description

Sealed native transition precision (f32 or f64).

Required Methods§

fn from_gain(gain: f64) -> Self

Round an f64 gain to this precision (as conversion, round to nearest).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

§

impl TransitionSample for f32

§

fn from_gain(gain: f64) -> Self

§

impl TransitionSample for f64

§

fn from_gain(gain: f64) -> Self

Implementors§