Struct syntex_syntax::diagnostics::metadata::ErrorMetadata [] [src]

pub struct ErrorMetadata {
    pub description: Option<String>,
    pub use_site: Option<ErrorLocation>,
}

JSON encodable/decodable version of ErrorInfo.

Fields

description
use_site

Trait Implementations

Derived Implementations

impl Encodable for ErrorMetadata

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for ErrorMetadata

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ErrorMetadata, __D::Error>

impl PartialEq for ErrorMetadata

fn eq(&self, __arg_0: &ErrorMetadata) -> bool

fn ne(&self, __arg_0: &ErrorMetadata) -> bool