pub enum OutputAssertion {
NonZero,
Skip,
VariesFrom(f32),
}Expand description
Controls the assertion applied to output samples after processing.
By default, NonZero asserts that at least one output sample across all channels
is not 0.0. Use Skip to opt out, or VariesFrom to check against an
arbitrary baseline value.
Variants§
NonZero
Assert that at least one output sample (across all channels) is not 0.0.
Panics if all output samples are 0.0.
Skip
Skip the output assertion entirely.
VariesFrom(f32)
Assert that at least one output sample (across all channels) differs from
the given baseline value.
Panics if all output samples equal baseline.
Trait Implementations§
Source§impl Clone for OutputAssertion
impl Clone for OutputAssertion
Source§fn clone(&self) -> OutputAssertion
fn clone(&self) -> OutputAssertion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputAssertion
impl Debug for OutputAssertion
Source§impl Default for OutputAssertion
impl Default for OutputAssertion
Source§fn default() -> OutputAssertion
fn default() -> OutputAssertion
Returns the “default value” for a type. Read more
impl Copy for OutputAssertion
Auto Trait Implementations§
impl Freeze for OutputAssertion
impl RefUnwindSafe for OutputAssertion
impl Send for OutputAssertion
impl Sync for OutputAssertion
impl Unpin for OutputAssertion
impl UnsafeUnpin for OutputAssertion
impl UnwindSafe for OutputAssertion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more