#[non_exhaustive]pub enum TableError {
Show 17 variants
Chunk(ChunkError),
StringPool(StringPoolError),
MissingValuePool,
PackageCountMismatch {
expected: u32,
found: u32,
},
PackageIdOutOfRange {
id: u32,
},
PoolOffsetOutOfRange {
offset: u32,
},
InvalidTypeId {
id: u8,
offset: u32,
},
UnnamedType {
type_id: u8,
},
TypeWithoutSpec {
type_id: u8,
},
EntryCountOutOfRange {
type_id: u8,
count: u32,
},
UnsortedSparseEntries {
type_id: u8,
},
EntryOutsideSpec {
type_id: u8,
index: u16,
},
EntriesOutOfRange {
type_id: u8,
offset: u32,
},
TruncatedEntry {
type_id: u8,
index: u16,
},
KeyOutOfRange {
type_id: u8,
index: u16,
key: u32,
},
TooManyEntries {
ty: ResourceType,
},
PackageNameTooLong {
name: String,
},
}Expand description
A malformed or unencodable resource table.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Chunk(ChunkError)
StringPool(StringPoolError)
MissingValuePool
PackageCountMismatch
PackageIdOutOfRange
PoolOffsetOutOfRange
InvalidTypeId
UnnamedType
TypeWithoutSpec
EntryCountOutOfRange
UnsortedSparseEntries
EntryOutsideSpec
EntriesOutOfRange
TruncatedEntry
KeyOutOfRange
TooManyEntries
Fields
§
ty: ResourceTypePackageNameTooLong
Trait Implementations§
Source§impl Clone for TableError
impl Clone for TableError
Source§impl Debug for TableError
impl Debug for TableError
Source§impl Display for TableError
impl Display for TableError
impl Eq for TableError
Source§impl Error for TableError
impl Error for TableError
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<ChunkError> for TableError
impl From<ChunkError> for TableError
Source§fn from(source: ChunkError) -> Self
fn from(source: ChunkError) -> Self
Converts to this type from the input type.
Source§impl From<StringPoolError> for TableError
impl From<StringPoolError> for TableError
Source§fn from(source: StringPoolError) -> Self
fn from(source: StringPoolError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for Error
impl From<TableError> for Error
Source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for ResourceError
impl From<TableError> for ResourceError
Source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TableError
impl PartialEq for TableError
impl StructuralPartialEq for TableError
Auto Trait Implementations§
impl Freeze for TableError
impl RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl UnsafeUnpin for TableError
impl UnwindSafe for TableError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.