We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b98b47 commit 1259170Copy full SHA for 1259170
1 file changed
src/unsafe_self_cell.rs
@@ -302,6 +302,11 @@ impl<T> MutBorrow<T> {
302
self.value.into_inner()
303
}
304
305
+impl<T> From<T> for MutBorrow<T> {
306
+ fn from(value: T) -> Self {
307
+ Self::new(value)
308
+ }
309
+}
310
311
// SAFETY: The reasoning why it is safe to share `MutBorrow` across threads is as follows: The
312
// `AtomicBool` `is_locked` ensures that only ever exactly one thread can get access to the inner
0 commit comments