error: add note about introspection

This commit is contained in:
Andrew Gallant 2025-12-22 09:47:21 -05:00
parent ddb5c8ad7c
commit 3cab25d02a
No known key found for this signature in database
GPG key ID: B2E3A4923F8B0D44
2 changed files with 7 additions and 2 deletions

View file

@ -9,6 +9,8 @@ Enhancements:
* [#412](https://github.com/BurntSushi/jiff/issues/412):
Add `Display`, `FromStr`, `Serialize` and `Deserialize` trait implementations
for `jiff::civil::ISOWeekDate`. These all use the ISO 8601 week date format.
* [#418](https://github.com/BurntSushi/jiff/issues/418):
Add some basic predicates to `jiff::Error` for basic error introspection.
0.2.16 (2025-11-07)

View file

@ -27,8 +27,11 @@ pub(crate) mod zoned;
///
/// Other than implementing the [`std::error::Error`] trait when the
/// `std` feature is enabled, the [`core::fmt::Debug`] trait and the
/// [`core::fmt::Display`] trait, this error type currently provides no
/// introspection capabilities.
/// [`core::fmt::Display`] trait, this error type currently provides
/// very limited introspection capabilities. Simple predicates like
/// `Error::is_range` are provided, but the predicates are not
/// exhaustive. That is, there exist some errors that do not return
/// `true` for any of the `Error::is_*` predicates.
///
/// # Design
///