This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ macro_rules! error_chain {
27
27
/// that is mostly irrelevant for error handling purposes.
28
28
#[ derive( Debug ) ]
29
29
pub struct $error_name {
30
+ /// The kind of the error.
30
31
pub kind: $error_kind_name,
32
+ /// Contains the error chain and the backtrace.
31
33
pub state: $crate:: State ,
32
34
}
33
35
@@ -192,10 +194,7 @@ macro_rules! error_chain {
192
194
}
193
195
}
194
196
195
- // The Result type
196
- // ---------------
197
-
198
- /// Convenient wrapper around std::Result.
197
+ /// Convenient wrapper around `std::Result`.
199
198
pub type $result_name<T > = :: std:: result:: Result <T , $error_name>;
200
199
} ;
201
200
Original file line number Diff line number Diff line change 31
31
//! optional, boxed `std::error::Error + Send + 'static` object
32
32
//! (which defines the `cause`, and establishes the links in the
33
33
//! error chain), and a `Backtrace`.
34
- //! * This crate additionally defines the trait ResultExt
34
+ //! * This crate additionally defines the trait ` ResultExt`
35
35
//! that defines a `chain_err` method. This method
36
36
//! on all `std::error::Error + Send + 'static` types extends
37
37
//! the error chain by boxing the current error into an opaque
213
213
//!
214
214
//! Both types come with a variety of `From` conversions as well:
215
215
//! `Error` can be created from `ErrorKind`, `&str` and `String`,
216
- //! and the "link" and "foreign_link" error types. `ErrorKind`
216
+ //! and the `links` and `foreign_links` error types. `ErrorKind`
217
217
//! can be created from the corresponding `ErrorKind`s of the link
218
218
//! types, as well as from `&str` and `String`.
219
219
//!
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ extern crate error_chain;
4
4
/// This module is used to check that all generated items are documented.
5
5
#[ deny( missing_docs) ]
6
6
pub mod doc {
7
+ /// Inner module.
7
8
pub mod inner {
8
9
error_chain ! {
9
10
}
You can’t perform that action at this time.
0 commit comments