Without having this trait implemented, a lot of existing error handling code will refuse to work with this type.
My current use case is I have an error that encapsulates KyberError and I want to be able to return it from my own std::error::Error::source implementation. But I can't, because the signature for that method requires the source to of course also implement std::error::Error.
Without having this trait implemented, a lot of existing error handling code will refuse to work with this type.
My current use case is I have an error that encapsulates
KyberError
and I want to be able to return it from my ownstd::error::Error::source
implementation. But I can't, because the signature for that method requires the source to of course also implementstd::error::Error
.