pub enum ReadStlError {
NotStl,
Ascii {
line: usize,
},
TooLarge,
}Expand description
Why an STL could not be read.
Variants§
NotStl
Neither a binary STL of the length its triangle count says, nor text
that starts with solid.
Ascii
An ASCII STL that breaks its grammar on this line, counted from 1.
TooLarge
More vertices than a mesh can number with a u32.
Trait Implementations§
Source§impl Clone for ReadStlError
impl Clone for ReadStlError
Source§impl Debug for ReadStlError
impl Debug for ReadStlError
Source§impl Display for ReadStlError
impl Display for ReadStlError
impl Eq for ReadStlError
Source§impl Error for ReadStlError
impl Error for ReadStlError
1.30.0 · 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()
Source§impl PartialEq for ReadStlError
impl PartialEq for ReadStlError
impl StructuralPartialEq for ReadStlError
Auto Trait Implementations§
impl Forget for ReadStlError
impl Freeze for ReadStlError
impl Move for ReadStlError
impl RefUnwindSafe for ReadStlError
impl Send for ReadStlError
impl Sync for ReadStlError
impl Unpin for ReadStlError
impl UnsafeUnpin for ReadStlError
impl UnwindSafe for ReadStlError
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