#[non_exhaustive]pub enum StructError {
ZeroLength,
UnpackSize(u64),
}Expand description
A struct.error Python 3.11 raises, 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.
ZeroLength
struct.iter_unpack of a format of zero bytes (a channel whose
dimension’s low four bits are 0, helpers/MeshHelper.py:392):
“cannot iteratively unpack with a struct of length 0”.
UnpackSize(u64)
struct.unpack of an index buffer whose length is not a multiple
of the index size (helpers/MeshHelper.py:183-186): “unpack
requires a buffer of N bytes”, N the bytes the count asks for.
Trait Implementations§
Source§impl Clone for StructError
impl Clone for StructError
impl Copy for StructError
Source§impl Debug for StructError
impl Debug for StructError
Source§impl Display for StructError
impl Display for StructError
impl Eq for StructError
Source§impl PartialEq for StructError
impl PartialEq for StructError
impl StructuralPartialEq for StructError
Auto Trait Implementations§
impl Forget for StructError
impl Freeze for StructError
impl Move for StructError
impl RefUnwindSafe for StructError
impl Send for StructError
impl Sync for StructError
impl Unpin for StructError
impl UnsafeUnpin for StructError
impl UnwindSafe for StructError
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