pub enum ParseErrorKind {
EmptyPrefix,
UnknownPrefix(String),
MissingField(&'static str),
InvalidNumber {
field: &'static str,
value: String,
},
InvalidIndex {
kind: &'static str,
value: String,
},
InvalidSmoothingGroup(String),
LineElementTooShort,
PointElementEmpty,
Custom(String),
}Expand description
Structured description of an OBJ syntax problem.
Variants§
EmptyPrefix
A line had no directive prefix after trimming whitespace.
UnknownPrefix(String)
The line started with a directive the parser does not recognize and
the ObjReader::read_unknown callback rejected it.
MissingField(&'static str)
A directive was missing a required field.
InvalidNumber
A numeric value could not be parsed as a float.
InvalidIndex
A face / line / point index was zero, negative, or non-numeric.
InvalidSmoothingGroup(String)
s <value> where the value was neither off nor a non-negative integer.
LineElementTooShort
l element with fewer than 2 vertices.
PointElementEmpty
p element with no vertices.
Custom(String)
Free-form message, e.g. from a custom ObjReader::read_unknown.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a duplicate 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 ParseErrorKind
impl Debug for ParseErrorKind
Source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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