Skip to content
Myr

Touch up documentation on Error struct

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 73c7283 · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:src/error.rs+6 added-6 removed
9 unmodified lines
10use std::backtrace::{Backtrace, BacktraceStatus};1112/// The `Error` type, a wrapper around a dynamic error type.13///14/// `Error` functions a lot like `Box<dyn std::error::Error>`, with these14/// `Error` works a lot like `Box<dyn std::error::Error>`, but with these15/// differences:16///17/// - `Error` requires that the error is `Send`, `Sync`, and `'static`18/// - `Error` guarantees that a backtrace will exist, even if the error type19/// did not provide one20/// - `Error` is represented as a narrow pointer - exactly one word in size,21/// instead of two.17/// - `Error` requires that the error is `Send`, `Sync`, and `'static`.18/// - `Error` guarantees that a backtrace is available, even if the underlying19/// error type does not provide one.20/// - `Error` is represented as a narrow pointer &mdash; exactly one word in21/// size instead of two.22pub struct Error {23 inner: Box<ErrorImpl<()>>,24}25
339 unmodified lines