Call out that we do not appear in public API
This commit is contained in:
parent
86f6b3bc4a
commit
13e8352b67
|
@ -44,6 +44,11 @@ pub enum DataStoreError {
|
|||
|
||||
## Details
|
||||
|
||||
- Thiserror deliberately does not appear in your public API. You get the same
|
||||
thing as if you had written an implementation of `std::error::Error` by hand,
|
||||
and switching from handwritten impls to thiserror or vice versa is not a
|
||||
breaking change.
|
||||
|
||||
- Errors may be enums, structs with named fields, tuple structs, or unit
|
||||
structs.
|
||||
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
//!
|
||||
//! # Details
|
||||
//!
|
||||
//! - Thiserror deliberately does not appear in your public API. You get the
|
||||
//! same thing as if you had written an implementation of `std::error::Error`
|
||||
//! by hand, and switching from handwritten impls to thiserror or vice versa
|
||||
//! is not a breaking change.
|
||||
//!
|
||||
//! - Errors may be enums, structs with named fields, tuple structs, or unit
|
||||
//! structs.
|
||||
//!
|
||||
|
|
Loading…
Reference in New Issue