pub enum ObjError {
Io(Error),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
Load(LoadError),
}
Expand description
The error type for loading of the obj
file.
Variants§
Io(Error)
IO error has been occurred during opening the obj
file.
ParseInt(ParseIntError)
Tried to parse integer frome the obj
file, but failed.
ParseFloat(ParseFloatError)
Tried to parse floating point number frome the obj
file, but failed.
Load(LoadError)
LoadError
has been occurred during parseing the obj
file.
Trait Implementations§
source§impl Error for ObjError
impl Error for ObjError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<ParseFloatError> for ObjError
impl From<ParseFloatError> for ObjError
source§fn from(err: ParseFloatError) -> Self
fn from(err: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for ObjError
impl From<ParseIntError> for ObjError
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.