Struct twig::error::At [] [src]

pub struct At<E: Display> {
    pub loc: Location,
    pub err: E,
}

Pins any error type to source file location.

Fields

loc
err

Methods

impl<E: Display> At<E>

fn new(err: E, loc: Location) -> At<E>

Trait Implementations

impl<E: Display> Display for At<E>

fn fmt(&self, f: &mut Formatter) -> Result

impl From<At<CoreTemplateError>> for At<TemplateError>

fn from(At { loc: Location { line: line }, err: err }: At<CoreTemplateError>) -> At<TemplateError>

Derived Implementations

impl<E: Debug + Display> Debug for At<E>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<E: Clone + Display> Clone for At<E>

fn clone(&self) -> At<E>

fn clone_from(&mut self, source: &Self)

impl<E: Copy + Display> Copy for At<E>