pub enum CompressedMeshError {
InvalidMagic,
UnsupportedVersion,
UnsupportedFlags,
InvalidIndexWidth,
InvalidCount,
InvalidBounds,
InvalidPayloadLength,
PayloadTooShort,
TrailingData,
IndexOutOfBounds,
IntegerOverflow,
}Expand description
Error returned when a Bunny compressed mesh byte stream is invalid.
Variants§
InvalidMagic
The magic bytes are not BUNNYQZ!.
UnsupportedVersion
The profile version is not supported.
UnsupportedFlags
Reserved header flags are non-zero.
InvalidIndexWidth
The triangle index width field is not canonical.
InvalidCount
A vertex or triangle count is zero or exceeds the profile limit.
InvalidBounds
The encoded quantization bounds are inverted.
InvalidPayloadLength
The declared payload length does not match the canonical layout.
PayloadTooShort
The input ends before the declared byte range.
TrailingData
The input has bytes after the declared payload.
IndexOutOfBounds
A requested record or triangle vertex index is out of bounds.
IntegerOverflow
A checked integer conversion or offset calculation overflowed.
Trait Implementations§
Source§impl Clone for CompressedMeshError
impl Clone for CompressedMeshError
Source§fn clone(&self) -> CompressedMeshError
fn clone(&self) -> CompressedMeshError
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 CompressedMeshError
Source§impl Debug for CompressedMeshError
impl Debug for CompressedMeshError
Source§impl Display for CompressedMeshError
impl Display for CompressedMeshError
impl Eq for CompressedMeshError
Source§impl Error for CompressedMeshError
impl Error for CompressedMeshError
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 PartialEq for CompressedMeshError
impl PartialEq for CompressedMeshError
Source§fn eq(&self, other: &CompressedMeshError) -> bool
fn eq(&self, other: &CompressedMeshError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressedMeshError
Auto Trait Implementations§
impl Freeze for CompressedMeshError
impl RefUnwindSafe for CompressedMeshError
impl Send for CompressedMeshError
impl Sync for CompressedMeshError
impl Unpin for CompressedMeshError
impl UnsafeUnpin for CompressedMeshError
impl UnwindSafe for CompressedMeshError
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