Enum obj::LoadErrorKind
source · pub enum LoadErrorKind {
UnexpectedStatement,
WrongNumberOfArguments,
WrongTypeOfArguments,
UntriangulatedModel,
InsufficientData,
IndexOutOfRange,
BackslashAtEOF,
TooBigGroupNumber,
}
Expand description
Enum to store the various types of errors that can cause loading an OBJ to fail.
Variants§
UnexpectedStatement
Met unexpected statement.
WrongNumberOfArguments
Received wrong number of arguments.
WrongTypeOfArguments
Received unexpected type of arguments.
UntriangulatedModel
Model should be triangulated first to be loaded properly.
InsufficientData
Model cannot be transformed into requested form.
IndexOutOfRange
Received index value out of range.
BackslashAtEOF
A line is expected after the backslash ().
TooBigGroupNumber
Group number exceeded limitation.
Trait Implementations§
source§impl Clone for LoadErrorKind
impl Clone for LoadErrorKind
source§fn clone(&self) -> LoadErrorKind
fn clone(&self) -> LoadErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LoadErrorKind
impl Debug for LoadErrorKind
source§impl PartialEq<LoadErrorKind> for LoadErrorKind
impl PartialEq<LoadErrorKind> for LoadErrorKind
source§fn eq(&self, other: &LoadErrorKind) -> bool
fn eq(&self, other: &LoadErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.