pub enum MetaPrefixError {
Eof(BitReaderEof),
InvalidColorCacheCodeBits {
value: u32,
},
Prefix(PrefixError),
}Expand description
Errors raised while reading the §5.2.3 color-cache info + §6.2.2 meta-prefix header + the §6.2 prefix-code group(s).
Variants§
Eof(BitReaderEof)
The bit reader hit EOF mid-field.
InvalidColorCacheCodeBits
§5.2.3: color_cache_code_bits was outside the [1..11]
allowed range.
Prefix(PrefixError)
One of the five §6.2.1 prefix codes inside a group failed to parse.
Trait Implementations§
Source§impl Clone for MetaPrefixError
impl Clone for MetaPrefixError
Source§fn clone(&self) -> MetaPrefixError
fn clone(&self) -> MetaPrefixError
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 moreSource§impl Debug for MetaPrefixError
impl Debug for MetaPrefixError
Source§impl Display for MetaPrefixError
impl Display for MetaPrefixError
impl Eq for MetaPrefixError
Source§impl Error for MetaPrefixError
impl Error for MetaPrefixError
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 From<BitReaderEof> for MetaPrefixError
impl From<BitReaderEof> for MetaPrefixError
Source§fn from(e: BitReaderEof) -> Self
fn from(e: BitReaderEof) -> Self
Converts to this type from the input type.
Source§impl From<MetaPrefixError> for DecodeError
impl From<MetaPrefixError> for DecodeError
Source§fn from(e: MetaPrefixError) -> Self
fn from(e: MetaPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<MetaPrefixError> for Error
impl From<MetaPrefixError> for Error
Source§fn from(e: MetaPrefixError) -> Self
fn from(e: MetaPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<PrefixError> for MetaPrefixError
impl From<PrefixError> for MetaPrefixError
Source§fn from(e: PrefixError) -> Self
fn from(e: PrefixError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MetaPrefixError
impl PartialEq for MetaPrefixError
Source§fn eq(&self, other: &MetaPrefixError) -> bool
fn eq(&self, other: &MetaPrefixError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetaPrefixError
Auto Trait Implementations§
impl Freeze for MetaPrefixError
impl RefUnwindSafe for MetaPrefixError
impl Send for MetaPrefixError
impl Sync for MetaPrefixError
impl Unpin for MetaPrefixError
impl UnsafeUnpin for MetaPrefixError
impl UnwindSafe for MetaPrefixError
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