Struct ReportError

pub struct ReportError { /* private fields */ }

An error that knows how to present itself nicely, with the right spans/notes etc.

Implementations

impl ReportError

fn message(&self) -> &str

The error message, without the source context.

fn span(&self) -> &Span

Where in the template source the error occurred.

fn filename(&self) -> &str

The name of the template the error occurred in.

Trait Implementations

impl Clone for ReportError

fn clone(&self) -> Self

impl Debug for ReportError

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

impl Eq for ReportError

impl PartialEq for ReportError

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for ReportError

Auto Trait Implementations

impl Freeze for ReportError

impl RefUnwindSafe for ReportError

impl Send for ReportError

impl Sync for ReportError

impl Unpin for ReportError

impl UnsafeUnpin for ReportError

impl UnwindSafe for ReportError

Blanket Implementations

impl<T> Any for ReportError where T: 'static + ?Sized,

impl<T> Borrow<T> for ReportError where T: ?Sized,

impl<T> BorrowMut<T> for ReportError where T: ?Sized,

impl<T> CloneToUninit for ReportError where T: Clone,

impl<T> From<T> for ReportError

impl<T> ToOwned for ReportError where T: Clone,

impl<T, U> Into<U> for ReportError where U: From<T>,

impl<T, U> TryFrom<U> for ReportError where U: Into<T>,

impl<T, U> TryInto<U> for ReportError where U: TryFrom<T>,