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.
1 parent c8f22c4 commit cede6b9Copy full SHA for cede6b9
dupe/src/lib.rs
@@ -14,6 +14,7 @@ pub(crate) mod iter;
14
pub(crate) mod option;
15
16
use std::cell::Cell;
17
+use std::mem::ManuallyDrop;
18
use std::num::*;
19
use std::rc::Rc;
20
use std::sync::Arc;
@@ -45,6 +46,7 @@ impl<A: ?Sized> Dupe for std::sync::Weak<A> {}
45
46
impl<A: ?Sized> Dupe for Rc<A> {}
47
impl<A: ?Sized> Dupe for std::rc::Weak<A> {}
48
impl<A: Copy> Dupe for Cell<A> {}
49
+impl<A: Dupe> Dupe for ManuallyDrop<A> {}
50
51
// Small containers
52
impl<A: Dupe> Dupe for Option<A> {}
0 commit comments