pub enum StaticAllocError {
BandOutOfRange {
band: u32,
},
QualityOutOfRange {
q: u32,
},
ChannelsOutOfRange {
channels: u32,
},
LmOutOfRange {
lm: u32,
},
}Expand description
Errors returned by the STATIC_ALLOC accessors when their
(band, q) inputs sit outside the §4.3.3 Table 57 grid.
Variants§
BandOutOfRange
band is outside 0..21 — the §4.3 Table 55 band count.
QualityOutOfRange
q is outside 0..11 — the §4.3.3 quality column range.
ChannelsOutOfRange
channels is outside 1..=2 — RFC 6716 §4.3.3 (p. 111)
declares channels ∈ {1, 2} for the unit conversion.
LmOutOfRange
lm is outside 0..4 — RFC 6716 §4.3 only defines four CELT
frame sizes (LM ∈ {0, 1, 2, 3}).
Trait Implementations§
Source§impl Clone for StaticAllocError
impl Clone for StaticAllocError
Source§fn clone(&self) -> StaticAllocError
fn clone(&self) -> StaticAllocError
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 StaticAllocError
Source§impl Debug for StaticAllocError
impl Debug for StaticAllocError
impl Eq for StaticAllocError
Source§impl PartialEq for StaticAllocError
impl PartialEq for StaticAllocError
Source§fn eq(&self, other: &StaticAllocError) -> bool
fn eq(&self, other: &StaticAllocError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StaticAllocError
Auto Trait Implementations§
impl Freeze for StaticAllocError
impl RefUnwindSafe for StaticAllocError
impl Send for StaticAllocError
impl Sync for StaticAllocError
impl Unpin for StaticAllocError
impl UnsafeUnpin for StaticAllocError
impl UnwindSafe for StaticAllocError
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