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.

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

Trait Implementations

impl PartialEq for ValueParseError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ValueParseError
[src]

Formats the value using the given formatter. Read more

impl Display for ValueParseError
[src]

Formats the value using the given formatter. Read more

impl Error for ValueParseError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<'a> From<ParseError<Stream<'a>>> for ValueParseError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ValueParseError

impl Sync for ValueParseError