Trait PanicError

Source
pub trait PanicError {
    // Provided methods
    fn panic_str(&self) -> !
       where Self: AsRef<str> { ... }
    fn panic_static_str(self) -> !
       where Self: Into<&'static str> { ... }
    fn panic_display(&self) -> !
       where Self: Display { ... }
}

Provided Methods§

Source

fn panic_str(&self) -> !
where Self: AsRef<str>,

Source

fn panic_static_str(self) -> !
where Self: Into<&'static str>,

Source

fn panic_display(&self) -> !
where Self: Display,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E> PanicError for E