Skip to main content

WPLCodeErrorTrait

Trait WPLCodeErrorTrait 

Source
pub trait WPLCodeErrorTrait {
    // Required methods
    fn from_syntax(e: ErrMode<ContextError>, code: &str, path: &str) -> Self;
    fn from_parse_err(
        e: ParseError<&str, ContextError>,
        code: &str,
        path: &str,
    ) -> Self;
}

Required Methods§

Source

fn from_syntax(e: ErrMode<ContextError>, code: &str, path: &str) -> Self

Source

fn from_parse_err( e: ParseError<&str, ContextError>, code: &str, path: &str, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WPLCodeErrorTrait for StructError<WplCodeReason>

Source§

fn from_syntax(e: ErrMode<ContextError>, code: &str, path: &str) -> Self

Source§

fn from_parse_err( e: ParseError<&str, ContextError>, code: &str, path: &str, ) -> Self

Implementors§