Enum Trim Threshold
pub enum TrimThreshold {
Absolute(f64),
RelativeToPeak(f64),
}Expand description
One explicit trim threshold. A frame is kept when any channel’s absolute sample is strictly greater than the resolved threshold.
Variants§
Absolute(f64)
Finite absolute amplitude >= 0.
RelativeToPeak(f64)
Finite fraction in [0, 1) of the linked peak after rate conversion.
Trait Implementations§
§impl Clone for TrimThreshold
impl Clone for TrimThreshold
§fn clone(&self) -> TrimThreshold
fn clone(&self) -> TrimThreshold
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrimThreshold
§impl Debug for TrimThreshold
impl Debug for TrimThreshold
§impl PartialEq for TrimThreshold
impl PartialEq for TrimThreshold
impl StructuralPartialEq for TrimThreshold
Auto Trait Implementations§
impl Freeze for TrimThreshold
impl RefUnwindSafe for TrimThreshold
impl Send for TrimThreshold
impl Sync for TrimThreshold
impl Unpin for TrimThreshold
impl UnsafeUnpin for TrimThreshold
impl UnwindSafe for TrimThreshold
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more