Skip to main content

Error

Trait Error 

Source
pub trait Error {
    // Required method
    fn throw(&self);
}
Expand description

Every error type must implement this trait.

Required Methods§

Source

fn throw(&self)

Prints the error message and sets the error flag.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§