pub struct InvalidSampleCount { /* private fields */ }Expand description
Payload for ConvertError::InvalidSampleCount.
An audio frame declares a negative nb_samples.
Refused rather than floored to zero. A negative count is not an empty frame — it is a header that cannot be read — and clamping it turned a malformed frame into a well-formed empty one that a consumer would have gone on decoding past.
Implementations§
Trait Implementations§
Source§impl Clone for InvalidSampleCount
impl Clone for InvalidSampleCount
Source§fn clone(&self) -> InvalidSampleCount
fn clone(&self) -> InvalidSampleCount
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 InvalidSampleCount
Source§impl Debug for InvalidSampleCount
impl Debug for InvalidSampleCount
Source§impl Display for InvalidSampleCount
impl Display for InvalidSampleCount
impl Eq for InvalidSampleCount
Source§impl PartialEq for InvalidSampleCount
impl PartialEq for InvalidSampleCount
impl StructuralPartialEq for InvalidSampleCount
Auto Trait Implementations§
impl Freeze for InvalidSampleCount
impl RefUnwindSafe for InvalidSampleCount
impl Send for InvalidSampleCount
impl Sync for InvalidSampleCount
impl Unpin for InvalidSampleCount
impl UnsafeUnpin for InvalidSampleCount
impl UnwindSafe for InvalidSampleCount
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