pub struct ParseError { /* private fields */ }Expand description
An error that can be met during parsing.
Implementations§
Source§impl ParseError
impl ParseError
Sourcepub fn new(
start: Position,
message: impl Into<SmolStr>,
end: Option<Position>,
) -> ParseError
pub fn new( start: Position, message: impl Into<SmolStr>, end: Option<Position>, ) -> ParseError
Create a new ParseError.
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 Default for ParseError
impl Default for ParseError
Source§fn default() -> ParseError
fn default() -> ParseError
Returns the “default value” for a type. Read more
Source§impl From<ParseError> for TokenType
impl From<ParseError> for TokenType
Source§fn from(value: ParseError) -> TokenType
fn from(value: ParseError) -> TokenType
Converts to this type from the input type.
Source§impl Hash for ParseError
impl Hash for ParseError
Source§impl Ord for ParseError
impl Ord for ParseError
Source§fn cmp(&self, other: &ParseError) -> Ordering
fn cmp(&self, other: &ParseError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
Source§impl PartialOrd for ParseError
impl PartialOrd for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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