To be usable as a standard error type, this type needs to implement std::error::Error, which implies both std::fmt::Debug and std::fmt::Display. Error can be trivially implemented, and Debug can be auto-derived, so this means providing a Display method.
To be usable as a standard error type, this type needs to implement
std::error::Error
, which implies bothstd::fmt::Debug
andstd::fmt::Display
.Error
can be trivially implemented, andDebug
can be auto-derived, so this means providing aDisplay
method.