pub struct ThresholdSilence {
pub frames: usize,
pub leading_frames: usize,
pub trailing_frames: usize,
pub active_range: Option<Range<usize>>,
}Expand description
Frame-exact leading/trailing silence under a caller’s linear amplitude threshold.
Fields§
§frames: usize§leading_frames: usizeFrames before the first frame where any channel exceeds the threshold.
trailing_frames: usizeFrames after the last frame where any channel exceeds the threshold.
active_range: Option<Range<usize>>First through last active frame, half-open. None for empty/wholly quiet PCM. For wholly quiet PCM both counts equal frames; they overlap, not add.
Trait Implementations§
Source§impl Clone for ThresholdSilence
impl Clone for ThresholdSilence
Source§fn clone(&self) -> ThresholdSilence
fn clone(&self) -> ThresholdSilence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThresholdSilence
impl Debug for ThresholdSilence
impl Eq for ThresholdSilence
Source§impl PartialEq for ThresholdSilence
impl PartialEq for ThresholdSilence
impl StructuralPartialEq for ThresholdSilence
Auto Trait Implementations§
impl Freeze for ThresholdSilence
impl RefUnwindSafe for ThresholdSilence
impl Send for ThresholdSilence
impl Sync for ThresholdSilence
impl Unpin for ThresholdSilence
impl UnsafeUnpin for ThresholdSilence
impl UnwindSafe for ThresholdSilence
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