pub fn new(filename: &str, err: impl Into<Box<dyn std::error::Error>>) -> Self {
        ParseError {
            filename: filename.to_string(),
            parse_error: Some(err.into()),
        }
    }
/// Create a [`ParseError`] that stems from an arbitrary error of an underlying parser.
Create a [`ParseError`] that stems from an arbitrary error of an underlying parser.
Create a [ ` ParseError ` ] that stems from an arbitrary error of an underlying parser .
pub fn new(filename: &str, err: impl Into<Box<dyn std::error::Error>>) -> Self {
        ParseError {
            filename: filename.to_string(),
            parse_error: Some(err.into()),
        }
    }
pub fn new ( filename : & str , err : impl Into < Box < dyn std :: error :: Error > > ) -> Self { ParseError { filename : filename . to_string ( ) , parse_error : Some ( err . into ( ) ) , } }
Create a [`ParseError`] that stems from an arbitrary error of an underlying parser.
Create a [ ` ParseError ` ] that stems from an arbitrary error of an underlying parser .
filename
&str
err
impl Into<Box<dyn std::error::Error>>
filename
&str
err
impl Into<Box<dyn std::error::Error>>