pub enum PulseCacheError {
BandOutOfRange {
band: usize,
},
LmOutOfRange {
lm: usize,
},
SentinelTuple {
band: usize,
lm: usize,
},
PulseCountOutOfRange {
k: u8,
max_k: u8,
},
}Expand description
Errors returned by the §4.3.4.1 cache lookup.
Variants§
BandOutOfRange
band is outside 0..21 (RFC 6716 §4.3 Table 55 band count).
LmOutOfRange
lm is outside 0..5 (the cache’s five-column LM axis).
SentinelTuple
The (band, LM) tuple maps to CACHE_INDEX_SENTINEL: it has
no cached cost curve and the caller must use the §4.3.4.1
closed-form path.
PulseCountOutOfRange
k is outside the run’s stored 1..=maxK cost curve (k = 0
has implicit cost 0 and is never stored; k > maxK exceeds the
run’s supported pulse count).
Trait Implementations§
Source§impl Clone for PulseCacheError
impl Clone for PulseCacheError
Source§fn clone(&self) -> PulseCacheError
fn clone(&self) -> PulseCacheError
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 PulseCacheError
Source§impl Debug for PulseCacheError
impl Debug for PulseCacheError
impl Eq for PulseCacheError
Source§impl PartialEq for PulseCacheError
impl PartialEq for PulseCacheError
Source§fn eq(&self, other: &PulseCacheError) -> bool
fn eq(&self, other: &PulseCacheError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PulseCacheError
Auto Trait Implementations§
impl Freeze for PulseCacheError
impl RefUnwindSafe for PulseCacheError
impl Send for PulseCacheError
impl Sync for PulseCacheError
impl Unpin for PulseCacheError
impl UnsafeUnpin for PulseCacheError
impl UnwindSafe for PulseCacheError
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