Struct regex_bnf::ParseError
source · pub struct ParseError {
pub message: &'static str,
pub at: FileLocation,
pub child_errors: Vec<ParseError>,
}
Fields§
§message: &'static str
§at: FileLocation
§child_errors: Vec<ParseError>
Implementations§
source§impl ParseError
impl ParseError
pub fn new(message: &'static str, at: FileLocation) -> Self
pub fn with_child(
message: &'static str,
at: FileLocation,
child: ParseError
) -> Self
pub fn with_children(
message: &'static str,
at: FileLocation,
children: Vec<ParseError>
) -> Self
Trait Implementations§
source§impl Clone for ParseError
impl Clone for ParseError
source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy 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 ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()