pub enum EncodePaintError {
RunsDoNotCover,
NotInOrder,
BadSplit,
TooDeep,
TooLarge,
}Expand description
Why a document could not be encoded.
Variants§
RunsDoNotCover
The runs of a version 1 document do not add up to the triangle count.
NotInOrder
The painted triangles of a version 2 document are not in increasing order, or one is past the mesh’s last triangle.
BadSplit
A split node has fewer than 2 or more than 4 children, or a special corner above 2.
TooDeep
A node is deeper than MAX_PAINT_DEPTH.
TooLarge
The document has 2^32 or more runs or painted triangles, or its trees take 4 GiB or more.
Trait Implementations§
Source§impl Clone for EncodePaintError
impl Clone for EncodePaintError
Source§impl Debug for EncodePaintError
impl Debug for EncodePaintError
Source§impl Display for EncodePaintError
impl Display for EncodePaintError
impl Eq for EncodePaintError
Source§impl Error for EncodePaintError
impl Error for EncodePaintError
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 EncodePaintError
impl PartialEq for EncodePaintError
impl StructuralPartialEq for EncodePaintError
Auto Trait Implementations§
impl Forget for EncodePaintError
impl Freeze for EncodePaintError
impl Move for EncodePaintError
impl RefUnwindSafe for EncodePaintError
impl Send for EncodePaintError
impl Sync for EncodePaintError
impl Unpin for EncodePaintError
impl UnsafeUnpin for EncodePaintError
impl UnwindSafe for EncodePaintError
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