Trait SemanticsErrorContext

Source
pub trait SemanticsErrorContext {
    type InnerType;

    // Required method
    fn context(&self, line: u32, message: &str) -> Result<Self::InnerType>;
}

Required Associated Types§

Required Methods§

Source

fn context(&self, line: u32, message: &str) -> Result<Self::InnerType>

Implementations on Foreign Types§

Source§

impl<T: Copy> SemanticsErrorContext for Option<T>

Source§

type InnerType = T

Source§

fn context(&self, line: u32, message: &str) -> Result<T>

Source§

impl<T: Copy, E: Copy> SemanticsErrorContext for Result<T, E>

Source§

type InnerType = T

Source§

fn context(&self, line: u32, message: &str) -> Result<T>

Implementors§