[−][src]Struct weldr::error::ParseError
Error related to parsing the content of an LDraw file.
Fields
filename: String
Filename of the sub-file reference, generally relative to some canonical catalog path(s).
parse_error: Option<Box<dyn Error>>
Optional underlying error raised by the internal parser.
Implementations
impl ParseError
[src]
pub fn new(filename: &str, err: impl Into<Box<dyn Error>>) -> Self
[src]
Create a ParseError
that stems from an arbitrary error of an underlying parser.
pub fn new_from_nom(filename: &str, err: &Err<(&[u8], ErrorKind)>) -> Self
[src]
Create a ParseError
that stems from a nom
parsing error, capturing the nom::error::ErrorKind
from the underlying parser which failed.
Trait Implementations
impl Debug for ParseError
[src]
impl From<ParseError> for Error
[src]
pub fn from(e: ParseError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ParseError
impl !Send for ParseError
impl !Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,