summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2023-08-08 18:02:44 -0400
committerBotahamec <botahamec@outlook.com>2023-08-08 18:02:44 -0400
commit2bf91f46dc4cdb943c2dcfbb44e1ddac170e3bee (patch)
tree974da0adbf3a2ed2154e88a025a6a6d9dfea9783 /src/lib.rs
parent49fb950dc024609bbc6b173582b7ea9c23b930f3 (diff)
exun::Result
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d449dd4..255bb4c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -158,3 +158,9 @@ pub use Exun::{Expected, Unexpected};
/// A type alias for [`Exun<E, RawUnexpected>`]
#[cfg(feature = "alloc")]
pub type Expect<E> = Exun<E, RawUnexpected>;
+
+/// A type alias for [`Result<T, RawUnexpected>`]
+///
+/// [`Result<T, RawUnexpected>`]: std::result::Result
+#[cfg(feature = "alloc")]
+pub type Result<T> = core::result::Result<T, RawUnexpected>;