pub enum ObjError {
Io(Error),
MalformedFaceGroup {
line_number: usize,
group: String,
},
ArgumentListFailure {
line_number: usize,
list: String,
},
UnexpectedCommand {
line_number: usize,
command: String,
},
MissingMTLName {
line_number: usize,
},
ZeroVertexNumber {
line_number: usize,
},
}
Expand description
Errors parsing or loading a .obj file.
Variants§
Io(Error)
MalformedFaceGroup
One of the arguments to f
is malformed.
ArgumentListFailure
An argument list either has unparsable arguments or is missing one or more arguments.
UnexpectedCommand
Command found that is not in the .obj spec.
MissingMTLName
mtllib
command issued, but no name was specified.
ZeroVertexNumber
Vertices are referenced using positive 1-based indices or negative relative indices.
Zero indices are invalid.
Trait Implementations§
Source§impl Error for ObjError
impl Error for ObjError
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()
Auto Trait Implementations§
impl Freeze for ObjError
impl !RefUnwindSafe for ObjError
impl Send for ObjError
impl Sync for ObjError
impl Unpin 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