1 2 3 4 5 6 7 8 9
extern crate core; use core::fmt::{Debug, Display}; pub trait Error: Debug + Display { fn description(&self) -> &str; fn cause(&self) -> Option<&Error> { None } }
1 2 3 4 5 6 7 8 9
extern crate core; use core::fmt::{Debug, Display}; pub trait Error: Debug + Display { fn description(&self) -> &str; fn cause(&self) -> Option<&Error> { None } }