pub enum MtlError {
Io(Error),
Parse {
line: usize,
kind: MtlParseErrorKind,
},
}Expand description
Error type returned by read_mtl_file.
Variants§
Trait Implementations§
Source§impl Error for MtlError
impl Error for MtlError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 UnsafeUnpin 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