[][src]Enum obj::ObjError

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,
    },
}

Errors parsing or loading a .obj file.

Variants

Io(Error)
MalformedFaceGroup

One of the arguments to f is malformed.

Fields of MalformedFaceGroup

line_number: usizegroup: String
ArgumentListFailure

An argument list either has unparsable arguments or is missing one or more arguments.

Fields of ArgumentListFailure

line_number: usizelist: String
UnexpectedCommand

Command found that is not in the .obj spec.

Fields of UnexpectedCommand

line_number: usizecommand: String
MissingMTLName

mtllib command issued, but no name was specified.

Fields of MissingMTLName

line_number: usize
ZeroVertexNumber

Vertices are referenced using positive 1-based indices or negative relative indices.

Zero indices are invalid.

Fields of ZeroVertexNumber

line_number: usize

Trait Implementations

impl Debug for ObjError[src]

impl Display for ObjError[src]

impl Error for ObjError[src]

impl From<Error> for ObjError[src]

Auto Trait Implementations

impl !RefUnwindSafe for ObjError

impl Send for ObjError

impl Sync for ObjError

impl Unpin for ObjError

impl !UnwindSafe for ObjError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.