Struct mentat_parser_utils::ValueParseError
[−]
[src]
pub struct ValueParseError { pub position: Span, pub errors: Vec<Error<ValueAndSpan, ValueAndSpan>>, }
A ValueParseError
is a combine::primitives::ParseError
-alike that implements the Debug
,
Display
, and std::error::Error
traits. In addition, it doesn't capture references, making
it possible to store ValueParseError
instances in local links with the error-chain
crate.
This is achieved by wrapping slices of type &'a [edn::Value]
in an owning type that implements
Display
; rather than introducing a newtype like DisplayVec
, we re-use edn::Value::Vector
.
Fields
position: Span
errors: Vec<Error<ValueAndSpan, ValueAndSpan>>
Trait Implementations
impl PartialEq for ValueParseError
[src]
impl PartialEq for ValueParseError
fn eq(&self, __arg_0: &ValueParseError) -> bool
[src]
fn eq(&self, __arg_0: &ValueParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ValueParseError) -> bool
[src]
fn ne(&self, __arg_0: &ValueParseError) -> bool
This method tests for !=
.
impl Debug for ValueParseError
[src]
impl Debug for ValueParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ValueParseError
[src]
impl Display for ValueParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ValueParseError
[src]
impl Error for ValueParseError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<'a> From<ParseError<Stream<'a>>> for ValueParseError
[src]
impl<'a> From<ParseError<Stream<'a>>> for ValueParseError
fn from(e: ParseError<Stream<'a>>) -> ValueParseError
[src]
fn from(e: ParseError<Stream<'a>>) -> ValueParseError
Performs the conversion.
Auto Trait Implementations
impl Send for ValueParseError
impl Send for ValueParseError
impl Sync for ValueParseError
impl Sync for ValueParseError