pub struct ParseError<'a> { /* private fields */ }Implementations§
Source§impl<'a> ParseError<'a>
impl<'a> ParseError<'a>
pub fn pretty_print(&self, use_color: bool) -> PrettyPrinter<'a>
Trait Implementations§
Source§impl<'a> Clone for ParseError<'a>
impl<'a> Clone for ParseError<'a>
Source§fn clone(&self) -> ParseError<'a>
fn clone(&self) -> ParseError<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
Source§impl<'a> Display for ParseError<'a>
impl<'a> Display for ParseError<'a>
Source§impl<'a> From<ParseError<'a>> for Error<'a>
impl<'a> From<ParseError<'a>> for Error<'a>
Source§fn from(e: ParseError<'a>) -> Self
fn from(e: ParseError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> ParseError<&'a str> for ParseError<'a>
impl<'a> ParseError<&'a str> for ParseError<'a>
Source§fn from_error_kind(input: &'a str, kind: ErrorKind) -> Self
fn from_error_kind(input: &'a str, kind: ErrorKind) -> Self
creates an error from the input position and an ErrorKind
Source§fn append(_input: &'a str, _kind: ErrorKind, other: Self) -> Self
fn append(_input: &'a str, _kind: ErrorKind, other: Self) -> Self
combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Source§fn add_context(input: &'a str, context: &'static str, other: Self) -> Self
fn add_context(input: &'a str, context: &'static str, other: Self) -> Self
create a new error from an input position, a static string and an existing error.
This is used mainly in the context combinator, to add user friendly information
to errors when backtracking through a parse tree
Source§impl<'a> PartialEq for ParseError<'a>
impl<'a> PartialEq for ParseError<'a>
Source§fn eq(&self, other: &ParseError<'a>) -> bool
fn eq(&self, other: &ParseError<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ParseError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseError<'a>
impl<'a> RefUnwindSafe for ParseError<'a>
impl<'a> Send for ParseError<'a>
impl<'a> Sync for ParseError<'a>
impl<'a> Unpin for ParseError<'a>
impl<'a> UnsafeUnpin for ParseError<'a>
impl<'a> UnwindSafe for ParseError<'a>
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