We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7dd3b20 + b6a65df commit f075698Copy full SHA for f075698
src/libstd/panic.rs
@@ -193,6 +193,12 @@ impl<T> AssertRecoverSafe<T> {
193
pub fn new(t: T) -> AssertRecoverSafe<T> {
194
AssertRecoverSafe(t)
195
}
196
+
197
+ /// Consumes the `AssertRecoverSafe`, returning the wrapped value.
198
+ #[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")]
199
+ pub fn into_inner(self) -> T {
200
+ self.0
201
+ }
202
203
204
impl<T> Deref for AssertRecoverSafe<T> {
0 commit comments