File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 13
13
//! # The `Error` trait
14
14
//!
15
15
//! `Error` is a trait representing the basic expectations for error values,
16
- //! i.e. values of type `E` in `Result<T, E>`. At a minimum, errors must provide
16
+ //! i.e. values of type `E` in [ `Result<T, E>`] . At a minimum, errors must provide
17
17
//! a description, but they may optionally provide additional detail (via
18
- //! `Display`) and cause chain information:
18
+ //! [ `Display`] ) and cause chain information:
19
19
//!
20
20
//! ```
21
21
//! use std::fmt::Display;
27
27
//! }
28
28
//! ```
29
29
//!
30
- //! The `cause` method is generally used when errors cross "abstraction
30
+ //! The [ `cause`] method is generally used when errors cross "abstraction
31
31
//! boundaries", i.e. when a one module must report an error that is "caused"
32
32
//! by an error from a lower-level module. This setup makes it possible for the
33
33
//! high-level module to provide its own errors that do not commit to any
34
34
//! particular implementation, but also reveal some of its implementation for
35
- //! debugging via `cause` chains.
35
+ //! debugging via [`cause`] chains.
36
+ //!
37
+ //! [`Result<T, E>`]: ../result/enum.Result.html
38
+ //! [`Display`]: ../fmt/trait.Display.html
39
+ //! [`cause`]: trait.Error.html#method.cause
36
40
37
41
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
38
42
You can’t perform that action at this time.
0 commit comments