AUDIO
Source snapshot · 11 November 2026

API reference / ravet_signal::FirSample

Trait FirSample 

pub trait FirSample:
    Copy
    + Default
    + PartialEq
    + Add<Output = Self>
    + Mul<Output = Self>
    + Sealed {
    // Required methods
    fn finite(self) -> bool;
    fn accumulate(self, a: Self, b: Self) -> Self;
}
Expand description

Sample types accepted by StereoFir: f32 and f64.

Required Methods§

fn finite(self) -> bool

Whether the value is finite.

fn accumulate(self, a: Self, b: Self) -> Self

self + a * b, fused on targets where fused multiply-add is a baseline instruction (arm64), and a separate multiply and add elsewhere.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

§

impl FirSample for f32

§

fn finite(self) -> bool

§

fn accumulate(self, a: Self, b: Self) -> Self

§

impl FirSample for f64

§

fn finite(self) -> bool

§

fn accumulate(self, a: Self, b: Self) -> Self

Implementors§