pub enum OverlapAddError {
ZeroLength,
BlockLenNotEven {
got: usize,
},
BlockLenMismatch {
got: usize,
want: usize,
},
BadOverlap {
overlap: usize,
n: usize,
},
OutputTooSmall {
want: usize,
got: usize,
},
}Expand description
Errors returnable by the §4.3.7 weighted overlap-add helpers.
Variants§
ZeroLength
The transform half-length N is zero; an empty block has no
overlap-add.
BlockLenNotEven
The supplied block was not exactly 2*N samples long.
BlockLenMismatch
The block length disagreed with the adder’s configured N.
BadOverlap
The overlap is zero or exceeds N (the §4.3.7 window touches at
most one half-block at each edge), or is odd (the low-overlap
construction needs an even overlap so the centre splits cleanly).
OutputTooSmall
The output slice passed to WeightedOverlapAdd::process_into
is shorter than the N samples a frame emits.
Trait Implementations§
Source§impl Clone for OverlapAddError
impl Clone for OverlapAddError
Source§fn clone(&self) -> OverlapAddError
fn clone(&self) -> OverlapAddError
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 moreimpl Copy for OverlapAddError
Source§impl Debug for OverlapAddError
impl Debug for OverlapAddError
Source§impl Display for OverlapAddError
impl Display for OverlapAddError
impl Eq for OverlapAddError
Source§impl Error for OverlapAddError
impl Error for OverlapAddError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OverlapAddError
impl PartialEq for OverlapAddError
Source§fn eq(&self, other: &OverlapAddError) -> bool
fn eq(&self, other: &OverlapAddError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OverlapAddError
Auto Trait Implementations§
impl Freeze for OverlapAddError
impl RefUnwindSafe for OverlapAddError
impl Send for OverlapAddError
impl Sync for OverlapAddError
impl Unpin for OverlapAddError
impl UnsafeUnpin for OverlapAddError
impl UnwindSafe for OverlapAddError
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