Struct speedy2d::error::BacktraceError[][src]

pub struct BacktraceError<E> where
    E: Debug + Display + 'static, 
{ /* fields omitted */ }

An error with an associated backtrace, and an optional cause.

Implementations

impl<E: Debug + Display> BacktraceError<E>[src]

#[must_use]pub fn get_backtrace(&self) -> &Backtrace[src]

Returns the backtrace for this error.

#[must_use]pub fn error(&self) -> &E[src]

Returns the error.

#[must_use]pub fn cause(&self) -> &Option<Box<dyn Error>>[src]

Returns the original cause of the error, if one is present.

Trait Implementations

impl<E: Clone> Clone for BacktraceError<E> where
    E: Debug + Display + 'static, 
[src]

impl<E: Debug + Display> Debug for BacktraceError<E>[src]

impl<E: Debug + Display> Display for BacktraceError<E>[src]

impl<E: Debug + Display> Error for BacktraceError<E>[src]

impl From<TryFromIntError> for BacktraceError<GLError>[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for BacktraceError<E>

impl<E> !Send for BacktraceError<E>

impl<E> !Sync for BacktraceError<E>

impl<E> Unpin for BacktraceError<E>

impl<E> !UnwindSafe for BacktraceError<E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.