Struct twig::error::Caused [] [src]

pub struct Caused<E: Display> {
    pub err: E,
    pub cause: Box<Option<Error>>,
}

Adds optional cause to error.

Fields

err
cause

Methods

impl<E: Display> Caused<E>

fn new(err: E, cause: Option<Error>) -> Caused<E>

Trait Implementations

impl<E: Display> Display for Caused<E>

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

Derived Implementations

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

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

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

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

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