File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1313//! # The `Error` trait
1414//!
1515//! `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
1717//! a description, but they may optionally provide additional detail (via
18- //! `Display`) and cause chain information:
18+ //! [ `Display`] ) and cause chain information:
1919//!
2020//! ```
2121//! use std::fmt::Display;
2727//! }
2828//! ```
2929//!
30- //! The `cause` method is generally used when errors cross "abstraction
30+ //! The [ `cause`] method is generally used when errors cross "abstraction
3131//! boundaries", i.e. when a one module must report an error that is "caused"
3232//! by an error from a lower-level module. This setup makes it possible for the
3333//! high-level module to provide its own errors that do not commit to any
3434//! 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
3640
3741#![ stable( feature = "rust1" , since = "1.0.0" ) ]
3842
You can’t perform that action at this time.
0 commit comments