diff options
| author | Botahamec <botahamec@outlook.com> | 2022-10-23 16:36:21 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-10-23 16:36:21 -0400 |
| commit | d930f7e176e60479d8761cc3dddb16c262bb2811 (patch) | |
| tree | e42aa8e701453a2e9112765754d530d19ebcdd3e /src/result.rs | |
| parent | d9764ab154bba91ccffeec8e5e54381d40e485cf (diff) | |
Documentation changes
Diffstat (limited to 'src/result.rs')
| -rw-r--r-- | src/result.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/result.rs b/src/result.rs index 2b8921c..dfcb7ef 100644 --- a/src/result.rs +++ b/src/result.rs @@ -10,6 +10,9 @@ mod sealed { use sealed::Sealed; +/// Provides [`Result::unexpect`] +/// +/// [`Result::unexpect`]: `ResultErrorExt::unexpect` #[cfg(feature = "std")] pub trait ResultErrorExt<T>: Sealed { /// Converts `Result<T, E>` to `Result<T, RawUnexpected>`. @@ -62,6 +65,9 @@ impl<T, E: Error + Send + Sync + 'static> ResultErrorExt<T> for Result<T, E> { } } +/// Provides [`Result::unexpect_msg`] +/// +/// [`Result::unexpect_msg`]: `ResultMsgExt::unexpect_msg` pub trait ResultMsgExt<T>: Sealed { /// Converts `Result<T, E>` to `Result<T, RawUnExpected>`. /// |
