pub enum CacheCaps50Error {
LmOutOfRange {
lm: u32,
},
BandOutOfRange {
band: u32,
},
ChannelsOutOfRange {
channels: u32,
},
}Expand description
Errors returned by the cache_caps_value / cap_for_band_bits
accessors for out-of-range indices.
Variants§
LmOutOfRange
lm is outside 0..4 (RFC 6716 §4.3 only defines four CELT
frame sizes).
BandOutOfRange
band is outside 0..21 (the §4.3 Table 55 band count).
ChannelsOutOfRange
channels is outside 1..=2 (RFC 6716 §4.3.3 p. 113 declares
channels ∈ {1,2} for the conversion).
Trait Implementations§
Source§impl Clone for CacheCaps50Error
impl Clone for CacheCaps50Error
Source§fn clone(&self) -> CacheCaps50Error
fn clone(&self) -> CacheCaps50Error
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 CacheCaps50Error
Source§impl Debug for CacheCaps50Error
impl Debug for CacheCaps50Error
impl Eq for CacheCaps50Error
Source§impl PartialEq for CacheCaps50Error
impl PartialEq for CacheCaps50Error
Source§fn eq(&self, other: &CacheCaps50Error) -> bool
fn eq(&self, other: &CacheCaps50Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CacheCaps50Error
Auto Trait Implementations§
impl Freeze for CacheCaps50Error
impl RefUnwindSafe for CacheCaps50Error
impl Send for CacheCaps50Error
impl Sync for CacheCaps50Error
impl Unpin for CacheCaps50Error
impl UnsafeUnpin for CacheCaps50Error
impl UnwindSafe for CacheCaps50Error
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