pub enum MtlError {
Io(Error),
InvalidInstruction(String),
InvalidValue(String),
MissingMaterialName,
MissingValue(MtlMissingType),
}Expand description
Errors parsing or loading a .mtl file.
Variants§
Io(Error)
InvalidInstruction(String)
Given instruction was not in .mtl spec.
InvalidValue(String)
Attempted to parse value, but failed.
MissingMaterialName
newmtl issued, but no name provided.
MissingValue(MtlMissingType)
Instruction requires a value, but that value was not provided.
Trait Implementations§
Source§impl Error for MtlError
impl Error for MtlError
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 MtlError
impl !RefUnwindSafe for MtlError
impl Send for MtlError
impl Sync for MtlError
impl Unpin for MtlError
impl !UnwindSafe for MtlError
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