#[non_exhaustive]pub enum IndexKind {
List,
Bytes,
Str,
ListAssignment,
}Expand description
An IndexError, by its message.
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.
List
“list index out of range”: a 4.x channel’s stream past the
file’s streams (helpers/MeshHelper.py:341), a packed vector’s
item past its m_Data list (helpers/PackedBitVector.py:56), or a
compressed skin’s vertex past the vertex count
(helpers/MeshHelper.py:587).
Bytes
“index out of range”: a packed vector’s item past its m_Data
where that is bytes (TypelessData, helpers/PackedBitVector.py:56).
Str
“string index out of range”: a 4.x channel’s index past its
stream’s bin(channelMask) (helpers/MeshHelper.py:346-347).
ListAssignment
“list assignment index out of range”: a quad submesh whose index
count is not a multiple of 4 (helpers/MeshHelper.py:674-675).
Trait Implementations§
impl Copy for IndexKind
impl Eq for IndexKind
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Forget for IndexKind
impl Freeze for IndexKind
impl Move for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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