pub struct BasicParseError {
pub kind: BasicParseErrorKind,
}Expand description
The fundamental parsing errors that can be triggered by built-in parsing routines.
Fields§
§kind: BasicParseErrorKindDetails of this error
Implementations§
Source§impl BasicParseError
impl BasicParseError
Sourcepub fn new(kind: BasicParseErrorKind) -> Self
pub fn new(kind: BasicParseErrorKind) -> Self
Create a new BasicParseError of the given kind.
Sourcepub fn unexpected_token() -> Self
pub fn unexpected_token() -> Self
Create a new BasicParseError for an unexpected token.
Trait Implementations§
Source§impl Clone for BasicParseError
impl Clone for BasicParseError
Source§fn clone(&self) -> BasicParseError
fn clone(&self) -> BasicParseError
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 Debug for BasicParseError
impl Debug for BasicParseError
Source§impl<T> From<BasicParseError> for ParseError<T>
impl<T> From<BasicParseError> for ParseError<T>
Source§fn from(this: BasicParseError) -> ParseError<T>
fn from(this: BasicParseError) -> ParseError<T>
Converts to this type from the input type.
Source§impl PartialEq for BasicParseError
impl PartialEq for BasicParseError
Source§fn eq(&self, other: &BasicParseError) -> bool
fn eq(&self, other: &BasicParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasicParseError
Auto Trait Implementations§
impl Freeze for BasicParseError
impl RefUnwindSafe for BasicParseError
impl Send for BasicParseError
impl Sync for BasicParseError
impl Unpin for BasicParseError
impl UnsafeUnpin for BasicParseError
impl UnwindSafe for BasicParseError
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