error_chain! { // Types generated by the macro. If empty or absent, it defaults to // Error, ErrorKind, Result;
types { // With custom names:
MyError, MyErrorKind, MyResult; // Without the `Result` wrapper: // Error, ErrorKind;
}
// Automatic bindings to other error types generated by `error_chain!`.
links {
Inner(inner::Error, inner::ErrorKind); // Attributes can be added at the end of the declaration.
Feature(feature::Error, feature::ErrorKind) #[cfg(feature = "a_feature")];
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.