Struct aoc_parse::ParseError
source · Fields§
§source: String§location: usizeImplementations§
source§impl ParseError
impl ParseError
pub fn new_extra(source: &str, location: usize) -> Self
pub fn new_bad_line_start(source: &str, location: usize) -> Self
pub fn new_line_extra(source: &str, location: usize) -> Self
pub fn new_expected(source: &str, location: usize, expected: &str) -> Self
pub fn new_from_str_failed(
source: &str,
start: usize,
end: usize,
type_name: &'static str,
message: String
) -> Self
pub fn new_cannot_match(source: &str, location: usize) -> 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()