pub enum ObjError {
MissingVertices,
MissingFaces,
InvalidVertex,
NonFiniteVertex,
NonTriangularFace,
InvalidIndex,
IndexOutOfBounds,
UnsupportedStatement,
}Expand description
Error returned when an OBJ mesh cannot be parsed as the Bunny text profile.
Variants§
MissingVertices
The OBJ source contains no vertex records.
MissingFaces
The OBJ source contains no face records.
InvalidVertex
A numeric vertex coordinate could not be parsed.
NonFiniteVertex
A vertex coordinate is NaN or infinity.
NonTriangularFace
A face is not a triangle.
InvalidIndex
A face index is zero, negative, relative, or not a valid integer.
IndexOutOfBounds
An accessor index or face vertex reference is outside the parsed range.
UnsupportedStatement
The OBJ statement is not part of the supported Bunny mesh profile.
Trait Implementations§
impl Copy for ObjError
impl Eq for ObjError
Source§impl Error for ObjError
impl Error for ObjError
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()
impl StructuralPartialEq for ObjError
Auto Trait Implementations§
impl Freeze for ObjError
impl RefUnwindSafe for ObjError
impl Send for ObjError
impl Sync for ObjError
impl Unpin for ObjError
impl UnsafeUnpin for ObjError
impl UnwindSafe for ObjError
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